> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nanoforge.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# NfNotInitializedException class

> Thrown when a method is called on a library or engine component before it has been initialised via init.

# NfNotInitializedException

## Summary

Thrown when a method is called on a library or engine component before it has been initialised via `__init`.

## Signature

```typescript theme={null}
declare class NfNotInitializedException extends NfException 
```

## Constructors

### constructor

Constructs a new instance of the class

## Properties

### code

**Modifiers**: readonly
**Type**:`get code(): number;`

Always .

## Remarks

This exception is raised automatically by the helper method `Library.throwNotInitializedError()`. Ensure that `NanoforgeApplication.init` has resolved before interacting with any library.
