FRIBParallelanalysis  1.0
FrameworkforMPIParalleldataanalysisatFRIB
Public Member Functions | List of all members
CURIFormatException Class Reference

#include <URIFormatException.h>

Inheritance diagram for CURIFormatException:
Inheritance graph
[legend]
Collaboration diagram for CURIFormatException:
Collaboration graph
[legend]

Public Member Functions

 CURIFormatException (std::string uri, const char *file, int line)
 uri is just not the right format.
 
 CURIFormatException (std::string uri, std::string port, const char *file, int line)
 Port is not a port.
 
 CURIFormatException (std::string uri, const char *host, const char *file, int line)
 Host fails validity check.
 
 CURIFormatException (const CURIFormatException &rhs)
 
CURIFormatExceptionoperator= (const CURIFormatException &rhs)
 
int operator== (const CURIFormatException &rhs) const
 
int operator!= (const CURIFormatException &rhs) const
 
virtual const char * ReasonText () const
 
virtual int ReasonCode () const
 
- Public Member Functions inherited from CException
 CException (const char *pszAction)
 
 CException (const std::string &rsAction)
 
 CException (const CException &aCException)
 
CExceptionoperator= (const CException &aCException)
 
int operator== (const CException &aCException) const
 
int operator!= (const CException &rException) const
 
const char * getAction () const
 
const char * WasDoing () const
 

Additional Inherited Members

- Protected Member Functions inherited from CException
void setAction (const char *pszAction)
 
void setAction (const std::string &rsAction)
 
virtual void DoAssign (const CException &rhs)
 

Detailed Description

CURIFormatException defines an exception that's thrown when parsing an Universal Resource Identifier (URI). The string indicates a human readable reason for the failure. The error code is always -1. The reason text encodes why the exception was thrown as well as where, e.g.:

URI Format Incorrect: reason : thrown at file:line

where file is almost always something ending in URI.cpp, and line is the line in that file where the actual exception was constructed.

Constructor & Destructor Documentation

◆ CURIFormatException()

CURIFormatException::CURIFormatException ( const CURIFormatException rhs)

Copy construction:

Member Function Documentation

◆ operator!=()

int CURIFormatException::operator!= ( const CURIFormatException rhs) const

Inequality if ! equal.

◆ operator=()

CURIFormatException & CURIFormatException::operator= ( const CURIFormatException rhs)

Assignment

◆ operator==()

int CURIFormatException::operator== ( const CURIFormatException rhs) const

Equality comparison.. all the members must be the same.

◆ ReasonCode()

int CURIFormatException::ReasonCode ( ) const
virtual
Returns
Int_t
Return values
-1

Reimplemented from CException.

◆ ReasonText()

const char * CURIFormatException::ReasonText ( ) const
virtual
Returns
const char*
Return values
Returnthe full text of the error

Reimplemented from CException.


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