Back to index

salome-gui  6.5.0
Public Member Functions | Static Public Member Functions | Private Attributes
CASCatch_Failure Class Reference

This class presents an exception to be thrown. More...

#include <CASCatch_Failure.hxx>

List of all members.

Public Member Functions

Standard_EXPORT CASCatch_Failure ()
 Public -.
Standard_EXPORT CASCatch_Failure (const Standard_CString aString)
 Public -.
Standard_EXPORT void Reraise (const Standard_CString aMessage)
 Public -.
Standard_EXPORT Standard_CString GetError () const
 Public -.
virtual Standard_EXPORT void Throw () const
 Public -.

Static Public Member Functions

static Standard_EXPORT
Handle_CASCatch_Failure 
Caught ()
static Standard_EXPORT void Raise (const Standard_CString aMessage="")
 Public -.

Private Attributes

Standard_Character * myMessage
 stores an exception message

Detailed Description

This class presents an exception to be thrown.

Definition at line 40 of file CASCatch_Failure.hxx.


Constructor & Destructor Documentation

Public -.

creates a CASCatch_Failure

Definition at line 45 of file CASCatch_Failure.cxx.

{ myMessage = (Standard_Character*)"Signal detected";}

Here is the caller graph for this function:

CASCatch_Failure::CASCatch_Failure ( const Standard_CString  AString)

Public -.

creates a CASCatch_Failure with a message

Parameters:
anexception message

Definition at line 54 of file CASCatch_Failure.cxx.

{
  if(AString) {
     myMessage = new Standard_Character[strlen(AString) + 1];
     strcpy(myMessage,AString);
  }
}

Member Function Documentation

static Standard_EXPORT Handle_CASCatch_Failure CASCatch_Failure::Caught ( ) [static]
Standard_CString CASCatch_Failure::GetError ( ) const

Public -.

returns an exception message

Definition at line 116 of file CASCatch_Failure.cxx.

{
  return myMessage;
}
void CASCatch_Failure::Raise ( const Standard_CString  AString = "") [static]

Public -.

raises a CASCatch_Failure exception

Parameters:
anexception message

Definition at line 82 of file CASCatch_Failure.cxx.

{ 
  Handle(CASCatch_Failure) E = new CASCatch_Failure()  ;
  E->Reraise (AString) ;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void CASCatch_Failure::Reraise ( const Standard_CString  AString)

Public -.

re-raises a CASCatch_Failure exception

Parameters:
anexception message

Definition at line 95 of file CASCatch_Failure.cxx.

{
  if(AString){
    myMessage = new Standard_Character[strlen(AString) + 1];
    strcpy(myMessage,AString);
  }

#ifdef NO_CXX_EXCEPTION
  CASCatch_ErrorHandler::Error(this) ;
  CASCatch_ErrorHandler::Abort();
#else
  RaisedError = this ;
  Throw() ;
#endif
}

Here is the call graph for this function:

void CASCatch_Failure::Throw ( ) const [virtual]

Public -.

Is called when using standard C++ exceptions

Definition at line 126 of file CASCatch_Failure.cxx.

{
#ifndef NO_CXX_EXCEPTION
  throw CASCatch_Failure() ;
#endif
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

stores an exception message

Definition at line 61 of file CASCatch_Failure.hxx.


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