Back to index

openldap  2.4.31
Public Member Functions | Static Public Attributes | Private Attributes
LDAPUrlException Class Reference

#include <LDAPUrl.h>

Collaboration diagram for LDAPUrlException:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LDAPUrlException (int code, const std::string &msg="")
int getCode () const
const std::string getErrorMessage () const
const std::string getAdditionalInfo () const

Static Public Attributes

static const int INVALID_SCHEME = 1
static const int INVALID_PORT = 2
static const int INVALID_SCOPE = 3
static const int INVALID_URL = 4
static const int URL_DECODING_ERROR = 5
static const code2string_s code2string []

Private Attributes

int m_code
std::string m_addMsg

Detailed Description

Definition at line 188 of file LDAPUrl.h.


Constructor & Destructor Documentation

LDAPUrlException::LDAPUrlException ( int  code,
const std::string &  msg = "" 
)

Definition at line 496 of file LDAPUrl.cpp.

                                                                  :
    m_code(code), m_addMsg(msg) {}

Member Function Documentation

Definition at line 504 of file LDAPUrl.cpp.

{
    return m_addMsg;
}

Here is the caller graph for this function:

Definition at line 499 of file LDAPUrl.cpp.

{
    return m_code;
}

Here is the caller graph for this function:

Definition at line 509 of file LDAPUrl.cpp.

{
    for ( int i = 0; code2string[i].string != 0; i++ ) {
        if ( code2string[i].code == m_code ) {
            return std::string(code2string[i].string);
        }
    }
    return "";

}

Here is the caller graph for this function:


Member Data Documentation

const code2string_s LDAPUrlException::code2string [static]
Initial value:
 {
   { INVALID_SCHEME,            "Invalid URL Scheme" },
   { INVALID_PORT,              "Invalid Port in Url" },
   { INVALID_SCOPE,             "Invalid Search Scope in Url" },
   { INVALID_URL,               "Invalid LDAP Url" },
   { URL_DECODING_ERROR,        "Url-decoding Error" },
   { 0, 0 }
}

Definition at line 201 of file LDAPUrl.h.

Definition at line 197 of file LDAPUrl.h.

Definition at line 196 of file LDAPUrl.h.

Definition at line 198 of file LDAPUrl.h.

Definition at line 199 of file LDAPUrl.h.

std::string LDAPUrlException::m_addMsg [private]

Definition at line 205 of file LDAPUrl.h.

Definition at line 204 of file LDAPUrl.h.

Definition at line 200 of file LDAPUrl.h.


The documentation for this class was generated from the following files: