ldapsdk  0.0.1
Public Member Functions | Static Public Attributes | List of all members
LDAPUrlException Class Reference

#include <LDAPUrl.h>

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 []
 

Constructor & Destructor Documentation

◆ LDAPUrlException()

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

Member Function Documentation

◆ getAdditionalInfo()

const std::string LDAPUrlException::getAdditionalInfo ( ) const

◆ getCode()

int LDAPUrlException::getCode ( ) const

◆ getErrorMessage()

const std::string LDAPUrlException::getErrorMessage ( ) const

References code2string.

Member Data Documentation

◆ code2string

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 }
}

Referenced by getErrorMessage().

◆ INVALID_PORT

const int LDAPUrlException::INVALID_PORT = 2
static

Referenced by LDAPUrl::parseUrl().

◆ INVALID_SCHEME

const int LDAPUrlException::INVALID_SCHEME = 1
static

◆ INVALID_SCOPE

const int LDAPUrlException::INVALID_SCOPE = 3
static

◆ INVALID_URL

const int LDAPUrlException::INVALID_URL = 4
static

Referenced by LDAPUrl::parseUrl().

◆ URL_DECODING_ERROR

const int LDAPUrlException::URL_DECODING_ERROR = 5
static

Referenced by LDAPUrl::percentDecode().


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