Exception: OpenReceive::Server::ConflictError
- Inherits:
-
StandardError
- Object
- StandardError
- OpenReceive::Server::ConflictError
- Defined in:
- lib/openreceive/server/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = "Conflict.") ⇒ ConflictError
constructor
A new instance of ConflictError.
Constructor Details
#initialize(message = "Conflict.") ⇒ ConflictError
Returns a new instance of ConflictError.
61 62 63 64 65 |
# File 'lib/openreceive/server/errors.rb', line 61 def initialize( = "Conflict.") super() @status = 409 @code = "CONFLICT" end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
59 60 61 |
# File 'lib/openreceive/server/errors.rb', line 59 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
59 60 61 |
# File 'lib/openreceive/server/errors.rb', line 59 def status @status end |