Exception: Nucleus::Errors::PlatformSpecificSemanticError

Inherits:
AdapterError
  • Object
show all
Defined in:
lib/nucleus/core/errors/platform_specific_semantic_error.rb

Instance Attribute Summary

Attributes inherited from AdapterError

#ui_error

Instance Method Summary collapse

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(message, 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(message, ui_error)
end