Exception: Vnetwork::Core::Errors::ErrorHandler::ValidateInvalid
- Inherits:
-
StandardError
- Object
- StandardError
- Vnetwork::Core::Errors::ErrorHandler::ValidateInvalid
- Defined in:
- lib/vnetwork/core/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status = 500, code = 500, message = nil) ⇒ ValidateInvalid
constructor
A new instance of ValidateInvalid.
Constructor Details
#initialize(status = 500, code = 500, message = nil) ⇒ ValidateInvalid
Returns a new instance of ValidateInvalid.
20 21 22 23 24 |
# File 'lib/vnetwork/core/errors.rb', line 20 def initialize(status = 500, code = 500, = nil) @status = status @message = @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
26 27 28 |
# File 'lib/vnetwork/core/errors.rb', line 26 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
26 27 28 |
# File 'lib/vnetwork/core/errors.rb', line 26 def @message end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
26 27 28 |
# File 'lib/vnetwork/core/errors.rb', line 26 def status @status end |