Versions in this module Expand all Collapse all v0 v0.1.0 Mar 23, 2025 Changes in this version + type ServiceError struct + Code string + Details map[string]interface{} + HTTPStatus int + HelpURL string + Message string + func AuthenticationError(message string) *ServiceError + func BlockchainError(message string) *ServiceError + func ConfigurationError(message string) *ServiceError + func ContractError(contract string, message string) *ServiceError + func DatabaseError(message string) *ServiceError + func ExternalServiceError(service string, message string) *ServiceError + func FieldValidationError(fieldErrors map[string]string) *ServiceError + func FunctionCompilationError(message string) *ServiceError + func FunctionError(message string) *ServiceError + func FunctionExecutionError(functionID int, message string) *ServiceError + func FunctionMemoryLimitError(functionID int, limit int) *ServiceError + func FunctionTimeoutError(functionID int, timeout int) *ServiceError + func InternalServerError(message string) *ServiceError + func New(code string, message string, httpStatus int) *ServiceError + func PermissionDeniedError(resource string, action string) *ServiceError + func RateLimitExceededError(limit int, windowSeconds int) *ServiceError + func ResourceAlreadyExistsError(resourceType string, key string, value interface{}) *ServiceError + func ResourceConflictError(resourceType string, reason string) *ServiceError + func ResourceNotFoundError(resourceType string, id interface{}) *ServiceError + func TokenExpiredError() *ServiceError + func TokenInvalidError(reason string) *ServiceError + func TransactionError(txid string, message string) *ServiceError + func ValidationError(message string) *ServiceError + func (e *ServiceError) Error() string + func (e *ServiceError) ToResponse() map[string]interface{} + func (e *ServiceError) Unwrap() error + func (e *ServiceError) WithCause(err error) *ServiceError + func (e *ServiceError) WithDetail(key string, value interface{}) *ServiceError + func (e *ServiceError) WithDetails(details map[string]interface{}) *ServiceError + func (e *ServiceError) WithHelpURL(url string) *ServiceError