Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4GDMLErrorHandler Class Reference

#include <G4GDMLRead.hh>

+ Inheritance diagram for G4GDMLErrorHandler:

Public Member Functions

 G4GDMLErrorHandler (const G4bool set)
 
void warning (const xercesc::SAXParseException &exception)
 
void error (const xercesc::SAXParseException &exception)
 
void fatalError (const xercesc::SAXParseException &exception)
 
void resetErrors ()
 

Detailed Description

Definition at line 55 of file G4GDMLRead.hh.

Constructor & Destructor Documentation

◆ G4GDMLErrorHandler()

G4GDMLErrorHandler::G4GDMLErrorHandler ( const G4bool  set)
inline

Definition at line 61 of file G4GDMLRead.hh.

61{ Suppress = set; }

Member Function Documentation

◆ error()

void G4GDMLErrorHandler::error ( const xercesc::SAXParseException &  exception)
inline

Definition at line 72 of file G4GDMLRead.hh.

73 {
74 if (Suppress) { return; }
75 char* message = xercesc::XMLString::transcode(exception.getMessage());
76 G4cout << "G4GDML: VALIDATION ERROR! " << message
77 << " at line: " << exception.getLineNumber() << G4endl;
78 xercesc::XMLString::release(&message);
79 }
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout

Referenced by fatalError().

◆ fatalError()

void G4GDMLErrorHandler::fatalError ( const xercesc::SAXParseException &  exception)
inline

Definition at line 81 of file G4GDMLRead.hh.

82 {
83 error(exception);
84 }
void error(const xercesc::SAXParseException &exception)
Definition: G4GDMLRead.hh:72

◆ resetErrors()

void G4GDMLErrorHandler::resetErrors ( )
inline

Definition at line 85 of file G4GDMLRead.hh.

85{}

◆ warning()

void G4GDMLErrorHandler::warning ( const xercesc::SAXParseException &  exception)
inline

Definition at line 63 of file G4GDMLRead.hh.

64 {
65 if (Suppress) { return; }
66 char* message = xercesc::XMLString::transcode(exception.getMessage());
67 G4cout << "G4GDML: VALIDATION WARNING! " << message
68 << " at line: " << exception.getLineNumber() << G4endl;
69 xercesc::XMLString::release(&message);
70 }

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