class cepError

Imp for the CEP date Copyright (C) Michael Still 2002 More...

Definition#include <gdms/cepError.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Public Static Methods

Private Members


Detailed Description

Imp for the CEP date Copyright (C) Michael Still 2002

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ****************************************************************************

enum severity { sevOk = 0, sevDebug, sevInformational, sevWarning, sevErrorRecoverable, sevErrorFatal, sevMax }

severity

 cepError ()

cepError

 cepError (const string & msg)

cepError

Constructor. Creates a new instance of cepError

Parameters:
msga description of the cause of the error

 cepError (const string & msg, severity level)

cepError

Constructor. Creates a new instance of cepError

Parameters:
msga description of the cause of the error
levelthe severity of the error

void  setErrorHandler ( class cepErrorHandler& h )

setErrorHandler

[static]

Adds a global cepErrorHandler which will be used to display and log errors. If no error handler is installed then display and log are not performed

Parameters:
hthe error handler to be used by all cepErrors

 ~cepError ()

~cepError

Destructor. if this is called and the error has not been actioned then the error is logged. Note that if no error handler is installed, failure to action will not be detected

bool  isReal ()

isReal

Check the status of the cepError

Returns: false if the severity is sevOk, true otherwise.

void  clear ()

clear

Clears the cepError by setting severity to sevOk and removing the current message

void  log ()

log

Logs the cepError via the currently installed error handler. If there is no error handler installed hen no action is taken

void  display ()

display

Displays the cepError via the currently installed error handler. If there is no error handler installed hen no action is taken

string &  getMessage ()

getMessage

Queries the description of the current cepError

Returns: a description of the current cepError

int  getSeverity ()

getSeverity

Queries the severity of the current cepError

Returns: the severity of the current cepError

static bool handlerInstalled

handlerInstalled

[private]

static class cepErrorHandler * handler

handler

[private]

string message

message

[private]

severity level

level

[private]

bool actioned

actioned

[private]


Generated by: pob on trillian on Sat Aug 10 17:26:42 2002, using kdoc 2.0a53.