CigiValueOutOfRangeException Class Reference

#include <CigiExceptions.h>

Inheritance diagram for CigiValueOutOfRangeException:

CigiException exception List of all members.

Public Member Functions

 CigiValueOutOfRangeException (void)
 CigiValueOutOfRangeException (char *ParameterName, int Value, int Low, int High)
 CigiValueOutOfRangeException (char *ParameterName, double Value, double Low, double High)
 CigiValueOutOfRangeException (char *ParameterName, double Value, char *Mod, double Limit)
virtual ~CigiValueOutOfRangeException (void) throw ()

Protected Attributes

char ErrMsg [255]
char SubPname [75]
char * PrtPname

Detailed Description

This is the exception thrown when a problem involving a packet parameter being set to an invalid value is encountered.

Definition at line 545 of file CigiExceptions.h.


Constructor & Destructor Documentation

CigiValueOutOfRangeException::CigiValueOutOfRangeException ( void   )  [inline]

General Constructor for the CigiValueOutOfRangeException exception class

Definition at line 554 of file CigiExceptions.h.

References CIGI_ERROR_VALUE_OUT_OF_RANGE.

00555    {
00556       memcpy(ErrMsg,"Value Out Of Range\n",23);
00557       Msg = ErrMsg;
00558       ErrorCode = CIGI_ERROR_VALUE_OUT_OF_RANGE;
00559    }

CigiValueOutOfRangeException::CigiValueOutOfRangeException ( char *  ParameterName,
int  Value,
int  Low,
int  High 
) [inline]

Integer Data Fill Constructor for the CigiValueOutOfRangeException exception class

Definition at line 565 of file CigiExceptions.h.

References CIGI_ERROR_VALUE_OUT_OF_RANGE.

00566    {
00567 
00568       if(strlen(ParameterName) < 75)
00569          PrtPname = ParameterName;
00570       else
00571       {
00572          memcpy(SubPname,ParameterName,74);
00573          SubPname[74] = 0;
00574          PrtPname = SubPname;
00575       }
00576 
00577       sprintf(ErrMsg,"Parameter Out of Range: Parameter %s is %d. The valid range is from %d to %d.\n",
00578               PrtPname, Value, Low, High);
00579 
00580       Msg = ErrMsg;
00581       ErrorCode = CIGI_ERROR_VALUE_OUT_OF_RANGE;
00582    }

CigiValueOutOfRangeException::CigiValueOutOfRangeException ( char *  ParameterName,
double  Value,
double  Low,
double  High 
) [inline]

Float/Double Data Fill Constructor for the CigiValueOutOfRangeException exception class

Definition at line 588 of file CigiExceptions.h.

References CIGI_ERROR_VALUE_OUT_OF_RANGE.

00589    {
00590       if(strlen(ParameterName) < 75)
00591          PrtPname = ParameterName;
00592       else
00593       {
00594          memcpy(SubPname,ParameterName,74);
00595          SubPname[74] = 0;
00596          PrtPname = SubPname;
00597       }
00598 
00599       sprintf(ErrMsg,"Parameter Out of Range: Parameter %s is %g. The valid range is from %g to %g.\n",
00600               PrtPname, Value, Low, High);
00601 
00602       Msg = ErrMsg;
00603       ErrorCode = CIGI_ERROR_VALUE_OUT_OF_RANGE;
00604    }

CigiValueOutOfRangeException::CigiValueOutOfRangeException ( char *  ParameterName,
double  Value,
char *  Mod,
double  Limit 
) [inline]

Float/Double Data Fill Constructor for the CigiValueOutOfRangeException exception class

Definition at line 610 of file CigiExceptions.h.

References CIGI_ERROR_VALUE_OUT_OF_RANGE.

00611    {
00612       if(strlen(ParameterName) < 75)
00613          PrtPname = ParameterName;
00614       else
00615       {
00616          memcpy(SubPname,ParameterName,74);
00617          SubPname[74] = 0;
00618          PrtPname = SubPname;
00619       }
00620 
00621       sprintf(ErrMsg,"Parameter Out of Range: Parameter %s is %g. The valid range is %s %g.\n",
00622               PrtPname, Value, Mod, Limit);
00623 
00624       Msg = ErrMsg;
00625       ErrorCode = CIGI_ERROR_VALUE_OUT_OF_RANGE;
00626    }

virtual CigiValueOutOfRangeException::~CigiValueOutOfRangeException ( void   )  throw () [inline, virtual]

General Destructor for the CigiValueOutOfRangeException exception class

Definition at line 632 of file CigiExceptions.h.

00632 { };


Member Data Documentation

char CigiValueOutOfRangeException::ErrMsg[255] [protected]

Definition at line 632 of file CigiExceptions.h.

char* CigiValueOutOfRangeException::PrtPname [protected]

Definition at line 638 of file CigiExceptions.h.

char CigiValueOutOfRangeException::SubPname[75] [protected]

Definition at line 637 of file CigiExceptions.h.


The documentation for this class was generated from the following file:
Generated on Wed Apr 29 09:00:11 2009 for CCL by  doxygen 1.4.7