OIS  1.5
Object-oriented Input System
Public Member Functions | Public Attributes | List of all members
OIS::Exception Class Reference

#include <OISException.h>

Inheritance diagram for OIS::Exception:

Public Member Functions

 Exception (OIS_ERROR err, const char *str, int line, const char *file)
 Creates exception object. More...
 
 Exception (const Exception &other)
 
 ~Exception () throw ()
 
virtual const char * what () const throw ()
 

Public Attributes

const OIS_ERROR eType
 The type of exception raised. More...
 
const int eLine
 The line number it occurred on. More...
 
const char * eFile
 The source file. More...
 
const char * eText
 A message passed along when the exception was raised. More...
 

Detailed Description

Remarks
Class for handling OIS exceptions. Much cleaner than checking every method for reurn value. Inherits from std::exception so you can simply log those messages if you want to be generic. Also note that this has a source file now since OSX was not finding the OIS::Exception symbol which would cause program abortion with now correponding exception type.

Constructor & Destructor Documentation

◆ Exception() [1/2]

OIS::Exception::Exception ( OIS_ERROR  err,
const char *  str,
int  line,
const char *  file 
)
inline

Creates exception object.

◆ Exception() [2/2]

OIS::Exception::Exception ( const Exception other)
inline

◆ ~Exception()

OIS::Exception::~Exception ( )
throw (
)
inline

Member Function Documentation

◆ what()

const char * Exception::what ( ) const
throw (
)
virtual

Member Data Documentation

◆ eFile

const char* OIS::Exception::eFile

The source file.

◆ eLine

const int OIS::Exception::eLine

The line number it occurred on.

◆ eText

const char* OIS::Exception::eText

A message passed along when the exception was raised.

◆ eType

const OIS_ERROR OIS::Exception::eType

The type of exception raised.


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