Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Audio::CorruptStreamException Class Reference

#include <Exceptions.h>

Inheritance diagram for Audio::CorruptStreamException:
Audio::Exception

Public Member Functions

 CorruptStreamException (const CorruptStreamException &other)
 
 CorruptStreamException (bool _fatal)
 
bool isFatal () const
 
- Public Member Functions inherited from Audio::Exception
 Exception ()
 
 Exception (const Exception &other)
 
 Exception (const std::string &message)
 
virtual ~Exception () throw ()
 
virtual const char * what () const throw ()
 

Detailed Description

Corrupt-Stream exception

Remarks
thrown when a corruption in an already open and seemingly correct stream is found.
It is possible that implementations may recover from this. If so, a second attempt
at reading may or may not fail. Recoverability is reported by isFatal(). Notice that recoverable corruption means only that an attempt to recover is possible, not that the attempt will succeed.

Definition at line 85 of file Exceptions.h.

Constructor & Destructor Documentation

Audio::CorruptStreamException::CorruptStreamException ( const CorruptStreamException other)
inline

Definition at line 88 of file Exceptions.h.

88 : Exception(other) {}
Audio::CorruptStreamException::CorruptStreamException ( bool  _fatal)
inlineexplicit

Definition at line 89 of file Exceptions.h.

90  : Exception(fatal ? "Fatal corruption on stream" : "Recoverable corruption on stream"),
91  fatal(_fatal)
92  {}

Member Function Documentation

bool Audio::CorruptStreamException::isFatal ( ) const
inline

Definition at line 94 of file Exceptions.h.

94 { return fatal; }

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