Module: Hatio::Exception
- Defined in:
- lib/hatio-core/exception/exceptions.rb
Defined Under Namespace
Classes: HatioError, InsufficientParameter, InvalidRequest, MisConfigured, ResourceNotFound, ServerError, ValidationWarning
Class Method Summary collapse
Class Method Details
.get_status_code(e) ⇒ Object
29 30 31 |
# File 'lib/hatio-core/exception/exceptions.rb', line 29 def self.get_status_code e @status_code_map[e.class.name] || :internal_server_error end |