{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Interface: ErrorEvent"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-reference/readme"},"children":["PERS SDK - v2.3.26"]}," / ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-reference/modules"},"children":["Exports"]}," / ErrorEvent"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"interface-errorevent","__idx":0},"children":["Interface: ErrorEvent"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Error event - uses ErrorDomain (business + technical domains)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Used for failures including:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Business errors (insufficient balance, expired campaign)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Technical errors (validation, system, external API)"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"hierarchy","__idx":1},"children":["Hierarchy"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BaseEvent"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["↳ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ErrorEvent"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"table-of-contents","__idx":2},"children":["Table of contents"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"properties","__idx":3},"children":["Properties"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-reference/interfaces/errorevent#id"},"children":["id"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-reference/interfaces/errorevent#timestamp"},"children":["timestamp"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-reference/interfaces/errorevent#type"},"children":["type"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-reference/interfaces/errorevent#usermessage"},"children":["userMessage"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-reference/interfaces/errorevent#action"},"children":["action"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-reference/interfaces/errorevent#code"},"children":["code"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-reference/interfaces/errorevent#details"},"children":["details"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-reference/interfaces/errorevent#level"},"children":["level"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-reference/interfaces/errorevent#domain"},"children":["domain"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"properties-1","__idx":4},"children":["Properties"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"id","__idx":5},"children":["id"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["id"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Unique event ID"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"inherited-from","__idx":6},"children":["Inherited from"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["BaseEvent.id"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"defined-in","__idx":7},"children":["Defined in"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/eXplorins/PERS-sdks/blob/main/packages/pers-sdk/packages/pers-sdk/src/core/events/event-types.ts#L164"},"children":["core/events/event-types.ts:164"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"timestamp","__idx":8},"children":["timestamp"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["timestamp"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["number"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Unix timestamp (ms)"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"inherited-from-1","__idx":9},"children":["Inherited from"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["BaseEvent.timestamp"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"defined-in-1","__idx":10},"children":["Defined in"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/eXplorins/PERS-sdks/blob/main/packages/pers-sdk/packages/pers-sdk/src/core/events/event-types.ts#L166"},"children":["core/events/event-types.ts:166"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"type","__idx":11},"children":["type"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["type"]},": ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-reference/modules#knowneventtype"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["KnownEventType"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Specific event type within domain"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"inherited-from-2","__idx":12},"children":["Inherited from"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["BaseEvent.type"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"defined-in-2","__idx":13},"children":["Defined in"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/eXplorins/PERS-sdks/blob/main/packages/pers-sdk/packages/pers-sdk/src/core/events/event-types.ts#L168"},"children":["core/events/event-types.ts:168"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"usermessage","__idx":14},"children":["userMessage"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["userMessage"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["User-friendly message - ALWAYS present, ready for display"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"inherited-from-3","__idx":15},"children":["Inherited from"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["BaseEvent.userMessage"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"defined-in-3","__idx":16},"children":["Defined in"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/eXplorins/PERS-sdks/blob/main/packages/pers-sdk/packages/pers-sdk/src/core/events/event-types.ts#L170"},"children":["core/events/event-types.ts:170"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"action","__idx":17},"children":["action"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Optional"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["action"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Suggested action for user (optional)"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"inherited-from-4","__idx":18},"children":["Inherited from"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["BaseEvent.action"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"defined-in-4","__idx":19},"children":["Defined in"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/eXplorins/PERS-sdks/blob/main/packages/pers-sdk/packages/pers-sdk/src/core/events/event-types.ts#L172"},"children":["core/events/event-types.ts:172"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"code","__idx":20},"children":["code"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Optional"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["code"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Error/event code from backend"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"inherited-from-5","__idx":21},"children":["Inherited from"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["BaseEvent.code"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"defined-in-5","__idx":22},"children":["Defined in"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/eXplorins/PERS-sdks/blob/main/packages/pers-sdk/packages/pers-sdk/src/core/events/event-types.ts#L174"},"children":["core/events/event-types.ts:174"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"details","__idx":23},"children":["details"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Optional"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["details"]},": ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-reference/modules#eventdetails"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["EventDetails"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Additional details for logging/debugging"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"inherited-from-6","__idx":24},"children":["Inherited from"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["BaseEvent.details"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"defined-in-6","__idx":25},"children":["Defined in"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/eXplorins/PERS-sdks/blob/main/packages/pers-sdk/packages/pers-sdk/src/core/events/event-types.ts#L176"},"children":["core/events/event-types.ts:176"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"level","__idx":26},"children":["level"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["level"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"error\""]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"defined-in-7","__idx":27},"children":["Defined in"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/eXplorins/PERS-sdks/blob/main/packages/pers-sdk/packages/pers-sdk/src/core/events/event-types.ts#L202"},"children":["core/events/event-types.ts:202"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"domain","__idx":28},"children":["domain"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["domain"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ErrorDomain"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Business + technical domains (includes validation, system, external)"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"defined-in-8","__idx":29},"children":["Defined in"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/eXplorins/PERS-sdks/blob/main/packages/pers-sdk/packages/pers-sdk/src/core/events/event-types.ts#L204"},"children":["core/events/event-types.ts:204"]}]}]},"headings":[{"value":"Interface: ErrorEvent","id":"interface-errorevent","depth":1},{"value":"Hierarchy","id":"hierarchy","depth":2},{"value":"Table of contents","id":"table-of-contents","depth":2},{"value":"Properties","id":"properties","depth":3},{"value":"Properties","id":"properties-1","depth":2},{"value":"id","id":"id","depth":3},{"value":"Inherited from","id":"inherited-from","depth":4},{"value":"Defined in","id":"defined-in","depth":4},{"value":"timestamp","id":"timestamp","depth":3},{"value":"Inherited from","id":"inherited-from-1","depth":4},{"value":"Defined in","id":"defined-in-1","depth":4},{"value":"type","id":"type","depth":3},{"value":"Inherited from","id":"inherited-from-2","depth":4},{"value":"Defined in","id":"defined-in-2","depth":4},{"value":"userMessage","id":"usermessage","depth":3},{"value":"Inherited from","id":"inherited-from-3","depth":4},{"value":"Defined in","id":"defined-in-3","depth":4},{"value":"action","id":"action","depth":3},{"value":"Inherited from","id":"inherited-from-4","depth":4},{"value":"Defined in","id":"defined-in-4","depth":4},{"value":"code","id":"code","depth":3},{"value":"Inherited from","id":"inherited-from-5","depth":4},{"value":"Defined in","id":"defined-in-5","depth":4},{"value":"details","id":"details","depth":3},{"value":"Inherited from","id":"inherited-from-6","depth":4},{"value":"Defined in","id":"defined-in-6","depth":4},{"value":"level","id":"level","depth":3},{"value":"Defined in","id":"defined-in-7","depth":4},{"value":"domain","id":"domain","depth":3},{"value":"Defined in","id":"defined-in-8","depth":4}],"frontmatter":{"seo":{"title":"Interface: ErrorEvent"}},"lastModified":"2026-08-21T18:40:55.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/sdk-reference/interfaces/errorevent","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}