5 #include <libutl/Object.h> 41 #define UTL_EXCEPTION_DECL(exName, baseExName) \ 42 class exName : public baseExName \ 44 UTL_CLASS_DECL(exName, baseExName); \ 47 exName(utl::Object* object); \ 49 exName(const utl::Object& object); \ 51 exName(const char* name, utl::Object* object) \ 52 : baseExName(name, object) \ 56 exName(const char* name, const utl::Object& object) \ 57 : baseExName(name, object) \ 79 #define UTL_EXCEPTION_IMPL(exNS, exName, baseExName, name) \ 80 UTL_CLASS_IMPL(exNS::exName); \ 81 exNS::exName::exName(utl::Object* object) \ 82 : baseExName(name, object) \ 86 exNS::exName::exName(const utl::Object& object) \ 87 : baseExName(name, object) \ 91 void exNS::exName::init() \ 154 void setName(
const char* name);
173 void setObject(
Object*
object);
176 void setObject(
const Object&
object);
Object * object() const
Get the associated object.
void deInit()
De-initialize UTL++.
Host has no address exception
Unknown host OS exception
Network unreachable exception
Invalid address/descriptor exception
File already exists exception
#define UTL_EXCEPTION_DECL(exName, baseExName)
Declare a simple exception type.
Interrupted system call exception
Host lookup failure exception
Address not available exception
Root of UTL++ exception class hierarchy.
Non-directory component exception
void copy(T *dest, const T *src, size_t len)
Copy one array of objects to another.
Stream serialization exception
const String & name() const
Get the name.
const String * namePtr() const
Get name pointer.
void errToEx(const utl::Object *object=nullptr)
Convert libc's errno to an exception.
#define UTL_CLASS_DECL_ABC(DC, BC)
Declaration of standard UTL++ functionality for an abstract base class (ABC).
Stream exception (abstract)
Connection reset by peer exception
Network exception (abstract)
Connection refused exception
Host OS exception (abstract)
Stream I/O error exception
Object * takeObject()
Take the associated object.
void h_errToEx(const utl::Object *object=nullptr)
Convert libc's h_errno to an exception.
Root of UTL++ class hierarchy.
void dump(const FwdIt &begin, const FwdIt &end, Stream &os, uint_t level=uint_t_max, bool key=false, bool printClassName=false, uint_t indent=0, const char *separator=nullptr)
Dump objects to the given stream (with Object::dump()).
void init()
Initialize UTL++.
#define ASSERTD
Do an assertion in DEBUG mode only.