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.
29 30 31 32 |
# File 'lib/s3ranger/exceptions.rb', line 29 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.
26 27 28 |
# File 'lib/s3ranger/exceptions.rb', line 26 def error_code @error_code end |
#msg ⇒ Object
Returns the value of attribute msg.
27 28 29 |
# File 'lib/s3ranger/exceptions.rb', line 27 def msg @msg end |