{"version":3,"sources":["../../src/session-relay/errors.ts"],"sourcesContent":["import { VanaError } from \"../errors\";\n\n/** Error details returned by Session Relay. */\nexport interface SessionRelayErrorDetails {\n  status?: number;\n  relayCode?: number;\n  relayErrorCode?: string;\n  body?: unknown;\n}\n\n/** Error thrown by Session Relay client operations. */\nexport class SessionRelayError extends VanaError {\n  constructor(\n    message: string,\n    public readonly details: SessionRelayErrorDetails = {},\n  ) {\n    super(message, details.relayErrorCode ?? \"SESSION_RELAY_ERROR\");\n  }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA0B;AAWnB,MAAM,0BAA0B,wBAAU;AAAA,EAC/C,YACE,SACgB,UAAoC,CAAC,GACrD;AACA,UAAM,SAAS,QAAQ,kBAAkB,qBAAqB;AAF9C;AAAA,EAGlB;AAAA,EAHkB;AAIpB;","names":[]}