Photon 0.0.2 Simple Open Source 2D Game API |
Exception/ Error TypesSummary
ThrowableThrowable is the base exception class for Photon. Throwable is pure virtual, and can not be used directly, Exception and Error are available for non-specific exceptions. All exceptions have the same interface as Throwable. Operators
Children
Summary
Throwable
Constructor for a Throwable object, can specify as little or as much information as you’d like when throwing. Parameters
ExceptionException is the base exception class, all exceptions inherit from it, and it inherits from Throwable. Exception should be used for hard to classify exceptions. Exception and children should be used when a problem occurs which is recoverable. See AlsoParentChildrenArgumentException PreconditionException RangeException ResourceException ErrorError is the base error class, all errors inherit from it, and it inherits from Throwable. Error should be used for hard to classify errors. Errors should be used when a problem occurs which is difficult to just ignore, usually more severe than exceptions. See AlsoParentChildren |
Constructor for a Throwable object, can specify as little or as much information as you’d like when throwing.
Throwable( const std:: string & description = std::string(), const std:: string & file = std::string(), uint line = 0 ) throw()
Similar to the std::exception family, all photon exceptions (the Throwable family) define what() that returns a description of the exception.
std::string virtual what( ) const throw()
Get just the description portion of an exception, used for chaining exceptions.
std::string virtual getDesc( ) const throw()