Exception: LDAP::ResultError

Inherits:
Error
  • Object
show all
Defined in:
lib/ldap/server/result.rb,
lib/ldap/server/result.rb

Overview

ResultError constants from RFC 2251 4.1.10; these are all exceptions which can be raised

Defined Under Namespace

Classes: AdminLimitExceeded, AffectsMultipleDSAs, AliasDereferencingProblem, AliasProblem, AttributeOrValueExists, AuthMethodNotSupported, Busy, CompareFalse, CompareTrue, ConfidentialityRequired, ConstraintViolation, EntryAlreadyExists, InappropriateAuthentication, InappropriateMatching, InsufficientAccessRights, InvalidAttributeSyntax, InvalidCredentials, InvalidDNSyntax, IsLeaf, LoopDetect, NamingViolation, NoSuchAttribute, NoSuchObject, NotAllowedOnNonLeaf, NotAllowedOnRDN, ObjectClassModsProhibited, ObjectClassViolation, OperationsError, Other, ProtocolError, Referral, SaslBindInProgress, SizeLimitExceeded, StrongAuthRequired, Success, TimeLimitExceeded, Unavailable, UnavailableCriticalExtension, UndefinedAttributeType, UnwillingToPerform

Constant Summary collapse

N_TO_CLASS =

Reverse lookup: so you can do raise LDAP::ResultError

{
  53 => UnwillingToPerform,
  # FIXME: please fill in the rest
}

Class Method Summary collapse

Class Method Details

.[](n) ⇒ Object

FIXME: please fill in the rest



66
67
68
# File 'lib/ldap/server/result.rb', line 66

def self.[](n)
  return N_TO_CLASS[n] || self
end