Structured data on an error that occurred during Polymod's operation.

Constructor

@:value({ origin : UNKNOWN })new(severity:PolymodErrorType, code:PolymodErrorCode, message:String, origin:PolymodErrorOrigin = UNKNOWN)

Variables

code:PolymodErrorCode

A particular error which occurred during Polymod's operation. You can use this with a switch statement to automatically resolve specific errors, or provide special messages for others.

message:String

A human-readable message providing more context for the error which occurred.

origin:PolymodErrorOrigin

Some brief context on where the error occurred.

severity:PolymodErrorType

Indicates the severity of the issue. See PolymodErrorType for more information.