Exception: Servus::Support::Errors::SchemaRequiredError

Inherits:
ServiceError
  • Object
show all
Defined in:
lib/servus/support/errors.rb

Overview

Raised when a service or event handler is invoked without a required schema.

Triggered by the require_service_arguments_schema, require_service_result_schema, or require_event_payload_schema configuration flags.

Constant Summary collapse

DEFAULT_MESSAGE =
'Schema is required but not defined'

Instance Attribute Summary

Attributes inherited from ServiceError

#message

Instance Method Summary collapse

Methods inherited from ServiceError

#initialize

Constructor Details

This class inherits a constructor from Servus::Support::Errors::ServiceError

Instance Method Details

#api_errorObject



283
# File 'lib/servus/support/errors.rb', line 283

def api_error = { code: :schema_required, message: message }

#http_statusObject



282
# File 'lib/servus/support/errors.rb', line 282

def http_status = :unprocessable_entity