Exception: CloudFoundry::Perm::V1::Errors::BadStatus

Inherits:
StandardError
  • Object
show all
Defined in:
lib/perm/v1/errors.rb

Direct Known Subclasses

AlreadyExists, NotFound

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



25
26
27
# File 'lib/perm/v1/errors.rb', line 25

def code
  @code
end

#detailsObject (readonly)

Returns the value of attribute details.



25
26
27
# File 'lib/perm/v1/errors.rb', line 25

def details
  @details
end

#metadataObject (readonly)

Returns the value of attribute metadata.



25
26
27
# File 'lib/perm/v1/errors.rb', line 25

def 
  @metadata
end