CIA Compliance Manager API Documentation - v1.1.6
    Preparing search index...

    Class ServiceError

    Custom error class for service operations

    Provides structured error information with error codes and context for better debugging and error handling.

    Hierarchy

    • Error
      • ServiceError
    Index

    Constructors

    Properties

    cause?: Error

    Original error that caused this error (if any)

    Error code for categorization

    context: ErrorContext

    Context information about the error

    timestamp: Date

    Timestamp when the error occurred

    Methods

    • Get a formatted error message with context

      Returns string

      Formatted error message

    • Convert error to JSON for logging

      Returns Record<string, unknown>

      JSON representation of the error