Module: WolfCore::ExceptionOperations

Included in:
ApplicationService, FkmOperations, HttpOperations, LambdaFunctionOperations
Defined in:
lib/wolf_core/application/exception_operations.rb

Instance Method Summary collapse

Instance Method Details

#raise_service_error(error_data) ⇒ Object



3
4
5
6
# File 'lib/wolf_core/application/exception_operations.rb', line 3

def raise_service_error(error_data)
  error_data = { message: error_data } if error_data.is_a?(String)
  raise WolfCore::ServiceException, error_data
end