Exception: LDAP::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ldap/error.rb

Direct Known Subclasses

InvalidDataError, ResultError

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#java_exceptionObject

Returns the value of attribute java_exception.



3
4
5
# File 'lib/ldap/error.rb', line 3

def java_exception
  @java_exception
end

Class Method Details

.wrap(message, java_exception) ⇒ Object



4
5
6
7
8
9
# File 'lib/ldap/error.rb', line 4

def self.wrap(message, java_exception)
  p java_exception if $DEBUG
  exception = new(message)
  exception.java_exception = java_exception
  exception
end