Beatmup
Beatmup::Exception Class Reference

Base class for all exceptions. More...

#include <exception.h>

Inheritance diagram for Beatmup::Exception:
Beatmup::Audio::PlaybackException Beatmup::Audio::Signal::IncompatibleFormat Beatmup::Audio::WAV::InvalidWavFile Beatmup::BitmapProcessing::ProcessingActionNotImplemented Beatmup::ChunkIdTooLong Beatmup::CustomPipeline::PipelineNotReady Beatmup::DRM::DRMError Beatmup::Fragments::Sequence::AccessException Beatmup::GL::GLException Beatmup::GL::Unsupported Beatmup::GpuOperationError Beatmup::IOError Beatmup::ImageShader::NoSource Beatmup::ImplementationUnsupported Beatmup::Insanity Beatmup::IntegerContour2D::BadSeedPoint Beatmup::InvalidArgument Beatmup::NNets::AbstractOperation::InconsistentModelData Beatmup::NNets::AbstractOperation::NotReady Beatmup::NNets::InferenceTimeError Beatmup::NNets::Storage::InconsistentStorageState Beatmup::NullTaskInput Beatmup::RuntimeError Beatmup::Scene::SceneIntegrityError Beatmup::UnsupportedPixelFormat Beatmup::UnsupportedTextureFormat

Public Member Functions

virtual const char * what () const NOEXCEPT override
 

Protected Member Functions

 Exception (const char *message)
 
template<typename ... Args>
 Exception (const char *message, const Args &... args)
 

Private Attributes

std::string message
 

Detailed Description

Base class for all exceptions.

Definition at line 37 of file exception.h.

Constructor & Destructor Documentation

◆ Exception() [1/2]

Beatmup::Exception::Exception ( const char *  message)
inlineprotected

Definition at line 41 of file exception.h.

41 : message(message) {}
std::string message
Definition: exception.h:39

◆ Exception() [2/2]

template<typename ... Args>
Beatmup::Exception::Exception ( const char *  message,
const Args &...  args 
)
inlineprotected

Definition at line 44 of file exception.h.

44  {
45  static const int MAX_LENGTH = 4*1024;
46  char out[MAX_LENGTH];
47 #if _MSC_VER
48  sprintf_s(out, MAX_LENGTH, message, args...);
49 #else
50  snprintf(out, MAX_LENGTH, message, args...);
51 #endif
52  this->message.assign(out);
53  }
JNIEnv jlong jint out

Member Function Documentation

◆ what()

virtual const char* Beatmup::Exception::what ( ) const
inlineoverridevirtual

Definition at line 56 of file exception.h.

56  {
57  return message.c_str();
58  }

Member Data Documentation

◆ message

std::string Beatmup::Exception::message
private

Definition at line 39 of file exception.h.


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