Exception: S3Ranger::WrongUsage
- Inherits:
-
SyncException
- Object
- StandardError
- SyncException
- S3Ranger::WrongUsage
- Defined in:
- lib/s3ranger/exceptions.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
Returns the value of attribute error_code.
-
#msg ⇒ Object
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(error_code, msg) ⇒ WrongUsage
constructor
A new instance of WrongUsage.
Constructor Details
#initialize(error_code, msg) ⇒ WrongUsage
Returns a new instance of WrongUsage.
46 47 48 49 |
# File 'lib/s3ranger/exceptions.rb', line 46 def initialize(error_code, msg) @error_code = error_code || 1 @msg = msg end |
Instance Attribute Details
#error_code ⇒ Object
Returns the value of attribute error_code.
43 44 45 |
# File 'lib/s3ranger/exceptions.rb', line 43 def error_code @error_code end |
#msg ⇒ Object
Returns the value of attribute msg.
44 45 46 |
# File 'lib/s3ranger/exceptions.rb', line 44 def msg @msg end |