Sha256: a18e3f6c2cc831cdadefa6e4d8e67344d571ba4745425f1bba8024f727bd3356

Contents?: true

Size: 824 Bytes

Versions: 26

Compression:

Stored size: 824 Bytes

Contents

#include "rays/exception.h"


#include <xot/string.h>


namespace Rays
{


	RaysError::RaysError (const char* str)
	:	Super(str)
	{
	}


	OpenGLError::OpenGLError (const char* str)
	:	Super(str)
	{
	}


	ShaderError::ShaderError (const char* str)
	:	Super(str)
	{
	}


	namespace ErrorFunctions
	{

		void
		rays_error (const char* file, int line, const char* format, ...)
		{
			XOT_STRINGF(format, s);
			throw RaysError(Xot::error_text(file, line, s));
		}

		void
		opengl_error (const char* file, int line, const char* format, ...)
		{
			XOT_STRINGF(format, s);
			throw OpenGLError(Xot::error_text(file, line, s));
		}

		void
		shader_error (const char* file, int line, const char* format, ...)
		{
			XOT_STRINGF(format, s);
			throw ShaderError(Xot::error_text(file, line, s));
		}

	}// ErrorFunctions


}// Rays

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
rays-0.3.3 src/exception.cpp
rays-0.3.2 src/exception.cpp
rays-0.3.1 src/exception.cpp
rays-0.3 src/exception.cpp
rays-0.2.1 src/exception.cpp
rays-0.2 src/exception.cpp
rays-0.1.49 src/exception.cpp
rays-0.1.48 src/exception.cpp
rays-0.1.47 src/exception.cpp
rays-0.1.46 src/exception.cpp
rays-0.1.45 src/exception.cpp
rays-0.1.44 src/exception.cpp
rays-0.1.43 src/exception.cpp
rays-0.1.42 src/exception.cpp
rays-0.1.40 src/exception.cpp
rays-0.1.39 src/exception.cpp
rays-0.1.38 src/exception.cpp
rays-0.1.37 src/exception.cpp
rays-0.1.36 src/exception.cpp
rays-0.1.35 src/exception.cpp