jaula API Reference
version 1.4.0
|
29 #ifndef _JAULA_EXCEPTION_H_
30 #define _JAULA_EXCEPTION_H_
92 , std::string
const &detail =
""
93 , std::string
const &action =
""
94 , std::string
const &origin =
"");
124 virtual std::string
const &
getDetail(
void)
const;
129 std::string
const &
getAction(
void)
const;
138 std::string
const &
getOrigin(
void)
const;
148 void display(std::ostream &ostr)
const;
156 void setDetail(std::string
const &detail);
163 void setAction(std::string
const &action);
171 void setOrigin(std::string
const &origin);
183 void addOrigin(std::string
const &origin);
std::string detail_
Container for exception textual detail.
Definition: jaula_exception.h:220
const std::string & getOrigin(void) const
Retrieves the method being run when the exception arose.
Definition: jaula_exception.cc:77
@ NAME_DUPLICATED
Definition: jaula_exception.h:67
@ NO_ERROR
Definition: jaula_exception.h:63
std::ostream & operator<<(std::ostream &ostr, JAULA::Exception const &ex)
Insertion operator extension for Exceptions.
Definition: jaula_exception.cc:171
std::string action_
Container action causing the exception.
Definition: jaula_exception.h:225
Base class for error handling exceptions.
Definition: jaula_exception.h:53
void display(std::ostream &ostr) const
Represents the instance in a stream.
Definition: jaula_exception.cc:82
ExCode code_
Container for error code.
Definition: jaula_exception.h:215
Exception(ExCode code=NO_ERROR, std::string const &detail="", std::string const &action="", std::string const &origin="")
Constructor.
Definition: jaula_exception.cc:42
virtual ~Exception()
Destructor.
Definition: jaula_exception.cc:59
void setCode(ExCode code)
Establishes the error code for the exception.
Definition: jaula_exception.cc:124
ExCode
Enumeration of available error codes.
Definition: jaula_exception.h:60
Namespace for all library definitions.
Definition: jaula.h:438
@ BAD_DATA_TYPE
Definition: jaula_exception.h:65
virtual const std::string & getDetail(void) const
Retrieves the detailed description for the exception.
Definition: jaula_exception.cc:67
void setOrigin(std::string const &origin)
Establishes the method being run when the exception arose.
Definition: jaula_exception.cc:139
void addOrigin(std::string const &origin)
Attachs a new origin after the existing ones.
Definition: jaula_exception.cc:144
const std::string & getAction(void) const
Retrieves the action that caused the exception.
Definition: jaula_exception.cc:72
@ LEXAN_ERROR
Definition: jaula_exception.h:69
std::string origin_
Container for where the exception was detected.
Definition: jaula_exception.h:230
Exception & operator=(Exception const &orig)
Assignment operator.
Definition: jaula_exception.cc:155
void setDetail(std::string const &detail)
Establishes the description for the exception.
Definition: jaula_exception.cc:129
ExCode getCode(void) const
Retrieves the error code for the exception.
Definition: jaula_exception.cc:62
void setAction(std::string const &action)
Establishes the action that caused the exception.
Definition: jaula_exception.cc:134
Copyright (c) 2007, 2008, 2009 Kombo Morongo.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included in the section entitled "GNU Free Documentation License".
API Reference Generated for jaula by