Module: SmugMug::ReplyErrors

Included in:
HTTPError, OAuthError, RequestError
Defined in:
lib/smugmug/exceptions.rb

Overview

Generic module that provides access to the code and text separately of the exception

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#reply_codeObject (readonly)

Returns the value of attribute reply_code


5
6
7
# File 'lib/smugmug/exceptions.rb', line 5

def reply_code
  @reply_code
end

#reply_textObject (readonly)

Returns the value of attribute reply_text


5
6
7
# File 'lib/smugmug/exceptions.rb', line 5

def reply_text
  @reply_text
end

Instance Method Details

#initialize(msg, reply_code = nil, reply_text = nil) ⇒ Object


7
8
9
10
# File 'lib/smugmug/exceptions.rb', line 7

def initialize(msg, reply_code=nil, reply_text=nil)
  super(msg)
  @reply_code, @reply_text = reply_code, reply_text
end