BALL 1.5.0
Loading...
Searching...
No Matches
BALL::Exception::InvalidFormat Class Reference

#include <BALL/COMMON/exception.h>

Inheritance diagram for BALL::Exception::InvalidFormat:
BALL::Exception::GeneralException

Public Member Functions

 InvalidFormat (const char *file, int line, const String &s)
 
 ~InvalidFormat () throw ()
 
- Public Member Functions inherited from BALL::Exception::GeneralException
 GeneralException ()
 Default constructor.
 
 GeneralException (const char *file, int line)
 Constructor.
 
 GeneralException (const char *file, int line, const String &name, const String &message)
 Constructor.
 
 GeneralException (const GeneralException &exception)
 Copy constructor.
 
virtual ~GeneralException () throw ()
 Destructor.
 
const char * getName () const
 Returns the name of the exception.
 
const char * getMessage () const
 Returns the error message of the exception.
 
void setMessage (const std::string &message)
 Modify the exception's error message.
 
int getLine () const
 Returns the line number where it occurred.
 
const char * getFile () const
 Returns the file where it occurred.
 

Protected Attributes

std::string format_
 
- Protected Attributes inherited from BALL::Exception::GeneralException
const char * file_
 
int line_
 
std::string name_
 
std::string message_
 

Detailed Description

Invalid format. This exception indicates a conversion problem when converting from one type to another. It is thrown, if a conversion from ascii to numeric formats or vice versa failed.

Definition at line 229 of file COMMON/exception.h.

Constructor & Destructor Documentation

◆ InvalidFormat()

BALL::Exception::InvalidFormat::InvalidFormat ( const char * file,
int line,
const String & s )

◆ ~InvalidFormat()

BALL::Exception::InvalidFormat::~InvalidFormat ( )
throw ( )

Member Data Documentation

◆ format_

std::string BALL::Exception::InvalidFormat::format_
protected

Definition at line 239 of file COMMON/exception.h.