Exception: Code42::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/code42/error.rb

Defined Under Namespace

Classes: AuthenticationError, AuthorizationError, ConnectionFailed, EmailInvalid, InvalidUsername, OrgDuplicate, OrgNameMissing, OrgNameTooShort, ParentOrgBlocked, ParentOrgNotActive, ResourceNotFound, ServerError, UsernameNotEmail

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, status = nil) ⇒ Error

Returns a new instance of Error.



4
5
6
7
# File 'lib/code42/error.rb', line 4

def initialize(message = nil, status = nil)
  super(message)
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



3
4
5
# File 'lib/code42/error.rb', line 3

def status
  @status
end