OIS 1.6
Object-oriented Input System
Loading...
Searching...
No Matches
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.
 Exception (OIS_ERROR err, const std::string &str, int line, const char *file)
 Exception (const Exception &other)
 ~Exception () throw ()
virtual const char * what () const throw ()

Public Attributes

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

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/3]

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

Creates exception object.

◆ Exception() [2/3]

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

◆ Exception() [3/3]

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 std::string OIS::Exception::eFile

The source file.

◆ eLine

const int OIS::Exception::eLine

The line number it occurred on.

◆ eText

const std::string 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: