Exception: KRB5::ResultError

Inherits:
Exception
  • Object
show all
Defined in:
lib/krb5.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (ResultError) initialize(data, *args)

Returns a new instance of ResultError



5
6
7
8
9
# File 'lib/krb5.rb', line 5

def initialize(data, *args)
  @code = data[:code]
  @method = data[:method]
  super(data[:message], *args)
end

Instance Attribute Details

- (Object) code

Returns the value of attribute code



4
5
6
# File 'lib/krb5.rb', line 4

def code
  @code
end

- (Object) method

Returns the value of attribute method



4
5
6
# File 'lib/krb5.rb', line 4

def method
  @method
end