Exceptions
Source-generated reference for simulation failures and configuration diagnostics. See Errors and recovery for handling patterns. The standalone reader uses OutputError.
SwmmError
Base runtime exception for binding and solver failures; supports instanceof.
Ordinary Error message, name, and stack are retained. Standalone output failures
use OutputError, not this hierarchy.
Extends
Error
Extended by
Constructors
Constructor
Construct an error with serialized or caller-supplied details.
Parameters
| Parameter | Type | Description |
|---|---|---|
details |
ErrorDetails |
Message and optional structured failure metadata. |
Returns
Overrides
Properties
code
Native numeric failure code, when available.
operation
Failed public operation, when available.
detail
Additional native failure detail.
semanticCode
Preserves unknown future categories rather than discarding them.
category
Native error category.
report
Partial report text, when available.
cleanupError
Secondary cleanup failure retained after a primary run failure.
cause?
Inherited from
name
Inherited from
message
Inherited from
stack?
Inherited from
SolverError
Native failure without a more specific binding category, including unmapped future codes.
Extends
Constructors
Constructor
Construct an error with serialized or caller-supplied details.
Parameters
| Parameter | Type | Description |
|---|---|---|
details |
ErrorDetails |
Message and optional structured failure metadata. |
Returns
Inherited from
Properties
code
Native numeric failure code, when available.
Inherited from
operation
Failed public operation, when available.
Inherited from
detail
Additional native failure detail.
Inherited from
semanticCode
Preserves unknown future categories rather than discarding them.
Inherited from
category
Native error category.
Inherited from
report
Partial report text, when available.
Inherited from
cleanupError
Secondary cleanup failure retained after a primary run failure.
Inherited from
cause?
Inherited from
name
Inherited from
message
Inherited from
stack?
Inherited from
LifecycleError
Invalid phase, closed owner, or competing advancement. Native codes: 501, 502, 503, 2001, 2002, 2013.
Extends
Extended by
Constructors
Constructor
Construct an error with serialized or caller-supplied details.
Parameters
| Parameter | Type | Description |
|---|---|---|
details |
ErrorDetails |
Message and optional structured failure metadata. |
Returns
Inherited from
Properties
code
Native numeric failure code, when available.
Inherited from
operation
Failed public operation, when available.
Inherited from
detail
Additional native failure detail.
Inherited from
semanticCode
Preserves unknown future categories rather than discarding them.
Inherited from
category
Native error category.
Inherited from
report
Partial report text, when available.
Inherited from
cleanupError
Secondary cleanup failure retained after a primary run failure.
Inherited from
cause?
Inherited from
name
Inherited from
message
Inherited from
stack?
Inherited from
StaleViewError
Retained owner-bound view no longer matches the live owner.
Extends
Constructors
Constructor
Construct an error with serialized or caller-supplied details.
Parameters
| Parameter | Type | Description |
|---|---|---|
details |
ErrorDetails |
Message and optional structured failure metadata. |
Returns
Inherited from
Properties
code
Native numeric failure code, when available.
Inherited from
operation
Failed public operation, when available.
Inherited from
detail
Additional native failure detail.
Inherited from
semanticCode
Preserves unknown future categories rather than discarding them.
Inherited from
category
Native error category.
Inherited from
report
Partial report text, when available.
Inherited from
cleanupError
Secondary cleanup failure retained after a primary run failure.
Inherited from
cause?
Inherited from
name
Inherited from
message
Inherited from
stack?
Inherited from
ValidationError
Invalid value or read. Native codes: 504, 507, 508, 509, 2003, 2006, 2010, 2012.
Extends
Extended by
Constructors
Constructor
Construct an error with serialized or caller-supplied details.
Parameters
| Parameter | Type | Description |
|---|---|---|
details |
ErrorDetails |
Message and optional structured failure metadata. |
Returns
Inherited from
Properties
code
Native numeric failure code, when available.
Inherited from
operation
Failed public operation, when available.
Inherited from
detail
Additional native failure detail.
Inherited from
semanticCode
Preserves unknown future categories rather than discarding them.
Inherited from
category
Native error category.
Inherited from
report
Partial report text, when available.
Inherited from
cleanupError
Secondary cleanup failure retained after a primary run failure.
Inherited from
cause?
Inherited from
name
Inherited from
message
Inherited from
stack?
Inherited from
ConfigurationError
Configuration rejected with object-level diagnostics; takes precedence over code-based categorization.
Extends
Constructors
Constructor
Construct a configuration failure and defensively freeze its diagnostics.
Parameters
| Parameter | Type | Description |
|---|---|---|
details |
ErrorDetails |
Error metadata and optional diagnostic list (defaults to empty). |
Returns
Overrides
Properties
code
Native numeric failure code, when available.
Inherited from
operation
Failed public operation, when available.
Inherited from
detail
Additional native failure detail.
Inherited from
semanticCode
Preserves unknown future categories rather than discarding them.
Inherited from
category
Native error category.
Inherited from
report
Partial report text, when available.
Inherited from
cleanupError
Secondary cleanup failure retained after a primary run failure.
Inherited from
diagnostics
Frozen diagnostic array with frozen object identities.
cause?
Inherited from
name
Inherited from
message
Inherited from
stack?
Inherited from
ObjectNotFoundError
Unknown object/definition ID. Native codes: 505, 506, 2000, 2004, 2005, 2007, 2008, 2009.
Extends
Constructors
Constructor
Construct an error with serialized or caller-supplied details.
Parameters
| Parameter | Type | Description |
|---|---|---|
details |
ErrorDetails |
Message and optional structured failure metadata. |
Returns
Inherited from
Properties
code
Native numeric failure code, when available.
Inherited from
operation
Failed public operation, when available.
Inherited from
detail
Additional native failure detail.
Inherited from
semanticCode
Preserves unknown future categories rather than discarding them.
Inherited from
category
Native error category.
Inherited from
report
Partial report text, when available.
Inherited from
cleanupError
Secondary cleanup failure retained after a primary run failure.
Inherited from
cause?
Inherited from
name
Inherited from
message
Inherited from
stack?
Inherited from
WorkerError
Worker startup, communication, or runtime prerequisite failure.
Extends
Extended by
Constructors
Constructor
Construct an error with serialized or caller-supplied details.
Parameters
| Parameter | Type | Description |
|---|---|---|
details |
ErrorDetails |
Message and optional structured failure metadata. |
Returns
Inherited from
Properties
code
Native numeric failure code, when available.
Inherited from
operation
Failed public operation, when available.
Inherited from
detail
Additional native failure detail.
Inherited from
semanticCode
Preserves unknown future categories rather than discarding them.
Inherited from
category
Native error category.
Inherited from
report
Partial report text, when available.
Inherited from
cleanupError
Secondary cleanup failure retained after a primary run failure.
Inherited from
cause?
Inherited from
name
Inherited from
message
Inherited from
stack?
Inherited from
InternalSimulationError
Internal native simulation failure, mapped from code 9999.
Extends
Constructors
Constructor
Construct an error with serialized or caller-supplied details.
Parameters
| Parameter | Type | Description |
|---|---|---|
details |
ErrorDetails |
Message and optional structured failure metadata. |
Returns
Inherited from
Properties
code
Native numeric failure code, when available.
Inherited from
operation
Failed public operation, when available.
Inherited from
detail
Additional native failure detail.
Inherited from
semanticCode
Preserves unknown future categories rather than discarding them.
Inherited from
category
Native error category.
Inherited from
report
Partial report text, when available.
Inherited from
cleanupError
Secondary cleanup failure retained after a primary run failure.
Inherited from
cause?
Inherited from
name
Inherited from
message
Inherited from
stack?
Inherited from
ConfigurationObjectIdentity
Native identity attached to a configuration diagnostic, not a lookup handle.
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
objectType |
readonly |
string |
Native object-family name. |
id |
readonly |
string |
Canonical object ID. |
index |
readonly |
number |
Native configured-order index for diagnostics. |
ConfigurationDiagnostic
One rejected configuration rule; the complete patch remains unapplied.
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
object |
readonly |
ConfigurationObjectIdentity |
Object whose declaration failed validation. |
propertyPath |
readonly |
string |
Property path identifying the rejected value. |
ruleCode |
readonly |
string |
Stable native validation-rule identifier. |
message |
readonly |
string |
Human-readable explanation. |
conflictingObject |
readonly |
ConfigurationObjectIdentity | null |
Other object involved in the conflict, or null. |
ErrorDetails
Details retained when an error crosses the worker boundary.
Properties
| Property | Type | Description |
|---|---|---|
message |
string |
Required human-readable error text. |
code? |
number |
Native numeric code, when supplied. |
operation? |
string |
Operation that failed. |
detail? |
string |
Additional native detail. |
semanticCode? |
string |
Semantic category, preserving unknown future values. |
category? |
string |
Native failure category. |
diagnostics? |
readonly ConfigurationDiagnostic[] |
Configuration diagnostics; presence takes precedence over numeric-code mapping. |
report? |
string |
Partial report text, when available. |
cleanupError? |
string |
Serialized secondary cleanup failure, when supplied by the worker. |