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.



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_codeObject

Returns the value of attribute error_code.



43
44
45
# File 'lib/s3ranger/exceptions.rb', line 43

def error_code
  @error_code
end

#msgObject

Returns the value of attribute msg.



44
45
46
# File 'lib/s3ranger/exceptions.rb', line 44

def msg
  @msg
end