Exception: Nucleus::Errors::PlatformSpecificSemanticError
- Inherits:
-
AdapterError
- Object
- StandardError
- AdapterError
- Nucleus::Errors::PlatformSpecificSemanticError
- Defined in:
- lib/nucleus/core/errors/platform_specific_semantic_error.rb
Instance Attribute Summary
Attributes inherited from AdapterError
Instance Method Summary collapse
-
#initialize(message, error_code = nil, ui_error = ErrorMessages::PLATFORM_SPECIFIC_ERROR_ENTITY) ⇒ PlatformSpecificSemanticError
constructor
initialize with default error to be 422.
Constructor Details
#initialize(message, error_code = nil, ui_error = ErrorMessages::PLATFORM_SPECIFIC_ERROR_ENTITY) ⇒ PlatformSpecificSemanticError
initialize with default error to be 422
5 6 7 8 9 |
# File 'lib/nucleus/core/errors/platform_specific_semantic_error.rb', line 5 def initialize(, error_code = nil, ui_error = ErrorMessages::PLATFORM_SPECIFIC_ERROR_ENTITY) # allow to customize the error code ui_error[:error_code] = error_code unless error_code.nil? super(, ui_error) end |