Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

geo::Exception Class Reference

Exceptions thrown by the geometry package. More...

#include <Exception.h>

List of all members.

Public Types

enum  {
  FILE_NOT_FOUND, BAD_PLANE_VIEW, BAD_PLANE_NUMBER, BAD_NODE,
  BAD_GEO_CONFIG, BAD_CELL_UNIQUE_ID
}
 Enumerate all the types of exceptions thrown. More...


Public Member Functions

 Exception (const char *f, int lno, int x, const char *msg=0)

Public Attributes

std::string fFile
int fLine
 File the threw the exception.

int fId
 Line number from which the exception was thrown.

std::string fMsg
 Id # of exception (see above).


Detailed Description

Exceptions thrown by the geometry package.

Definition at line 15 of file pkgs/Geometry/Exception.h.


Member Enumeration Documentation

anonymous enum
 

Enumerate all the types of exceptions thrown.

Enumeration values:
FILE_NOT_FOUND 
BAD_PLANE_VIEW 
BAD_PLANE_NUMBER 
BAD_NODE 
BAD_GEO_CONFIG 
BAD_CELL_UNIQUE_ID 

Definition at line 18 of file pkgs/Geometry/Exception.h.

00018          {
00019       FILE_NOT_FOUND,
00020       BAD_PLANE_VIEW,
00021       BAD_PLANE_NUMBER,
00022       BAD_NODE,
00023       BAD_GEO_CONFIG,
00024       BAD_CELL_UNIQUE_ID
00025     };


Constructor & Destructor Documentation

geo::Exception::Exception const char *  f,
int  lno,
int  x,
const char *  msg = 0
[inline]
 

Exceptions thrown by the geometry package

Parameters:
f : file name throwing exception. Use __FILE__ typically.
lno : Line number in file. Use __LINE__ typically.
x : Exception ID number (see enum above)
msg : Optional text message

Definition at line 32 of file pkgs/Geometry/Exception.h.

References fFile, fId, fLine, and fMsg.

00032                                                                 :
00033       fFile(f), fLine(lno), fId(x) {
00034       if (msg!=0) fMsg = msg; 
00035       std::cerr << "* Exception in " << fFile << ":" << fLine
00036                 << " id=" << fId << ": " << fMsg << std::endl;
00037     }


Member Data Documentation

std::string geo::Exception::fFile
 

Definition at line 40 of file pkgs/Geometry/Exception.h.

Referenced by Exception().

int geo::Exception::fId
 

Line number from which the exception was thrown.

Definition at line 42 of file pkgs/Geometry/Exception.h.

Referenced by Exception().

int geo::Exception::fLine
 

File the threw the exception.

Definition at line 41 of file pkgs/Geometry/Exception.h.

Referenced by Exception().

std::string geo::Exception::fMsg
 

Id # of exception (see above).

Definition at line 43 of file pkgs/Geometry/Exception.h.

Referenced by Exception().


The documentation for this class was generated from the following file:
Generated on Thu Sep 4 02:05:34 2008 for NOvA Offline by doxygen 1.3.5