Exception: S3Ranger::WrongUsage

Inherits:
SyncException show all
Defined in:
lib/s3ranger/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_codeObject

Returns the value of attribute error_code.



26
27
28
# File 'lib/s3ranger/exceptions.rb', line 26

def error_code
  @error_code
end

#msgObject

Returns the value of attribute msg.



27
28
29
# File 'lib/s3ranger/exceptions.rb', line 27

def msg
  @msg
end