Exception: AWS::Creds::InvalidKeyTab

Inherits:
Exception
  • Object
show all
Defined in:
lib/aws/creds/store.rb

Direct Known Subclasses

MissingKeyTab, UnsafePerms

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, msg = nil) ⇒ InvalidKeyTab

Returns a new instance of InvalidKeyTab.



6
7
8
9
10
11
12
# File 'lib/aws/creds/store.rb', line 6

def initialize path, msg=nil
  @path, @msg = path, msg

  def to_s
    "#{path}: #{msg}"
  end
end

Instance Attribute Details

#msgObject

Returns the value of attribute msg.



5
6
7
# File 'lib/aws/creds/store.rb', line 5

def msg
  @msg
end

#pathObject

Returns the value of attribute path.



5
6
7
# File 'lib/aws/creds/store.rb', line 5

def path
  @path
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/aws/creds/store.rb', line 9

def to_s
  "#{path}: #{msg}"
end