Exception: CloudFoundry::Perm::V1::Errors::BadStatus
- Inherits:
-
StandardError
- Object
- StandardError
- StandardError
- CloudFoundry::Perm::V1::Errors::BadStatus
- Defined in:
- lib/perm/v1/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
-
#initialize(code, details = 'unknown cause', metadata = {}) ⇒ BadStatus
constructor
A new instance of BadStatus.
Constructor Details
#initialize(code, details = 'unknown cause', metadata = {}) ⇒ BadStatus
Returns a new instance of BadStatus.
27 28 29 30 31 32 |
# File 'lib/perm/v1/errors.rb', line 27 def initialize(code, details = 'unknown cause', = {}) super("#{code}:#{details}") @code = code @details = details @metadata = end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
25 26 27 |
# File 'lib/perm/v1/errors.rb', line 25 def code @code end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
25 26 27 |
# File 'lib/perm/v1/errors.rb', line 25 def details @details end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
25 26 27 |
# File 'lib/perm/v1/errors.rb', line 25 def @metadata end |