LibCarna Version 3.4.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
LibCarna::base::ShaderCompilationError Class Reference

Thrown when shader compilation fails. More...

#include <ShaderCompilationError.hpp>

+ Inheritance diagram for LibCarna::base::ShaderCompilationError:
+ Collaboration diagram for LibCarna::base::ShaderCompilationError:

Public Member Functions

 ShaderCompilationError (const std::string &details)
 Instantiates.
 
 ShaderCompilationError (const std::string &details, const std::string &vertexShaderFile, const std::string &fragmentShaderFile)
 
- Public Member Functions inherited from LibCarna::base::LibCarnaException
 LibCarnaException (const std::string &type, const std::string &message, const std::string &details="")
 Initializes the attributes plainly from the arguments.
 
 LibCarnaException (const std::logic_error &error, const std::string &details="")
 Initializes the type as ''Assertion Error'' and the message from the given exception.
 
 LibCarnaException (const std::runtime_error &error, const std::string &details="")
 Initializes the type as ''Unhandled Exception'' and the message from the given exception.
 
 LibCarnaException (const LibCarnaException &other)
 Instantiates as a copy of the other exception.
 
const charwhat () const
 Tells the message and the details of this exception.
 

Additional Inherited Members

- Public Attributes inherited from LibCarna::base::LibCarnaException
const std::string type
 Tells the type (category) of this exception.
 
const std::string message
 Tells the message of this exception.
 
const std::string details
 Tells the details of this exception. May be empty.
 

Detailed Description

Thrown when shader compilation fails.

Author
Leonid Kostrykin

Definition at line 42 of file ShaderCompilationError.hpp.

Constructor & Destructor Documentation

◆ ShaderCompilationError() [1/2]

LibCarna::base::ShaderCompilationError::ShaderCompilationError ( const std::string &  details)
explicit

Instantiates.

Parameters
detailsdescribes the compilation failure.

◆ ShaderCompilationError() [2/2]

LibCarna::base::ShaderCompilationError::ShaderCompilationError ( const std::string &  details,
const std::string &  vertexShaderFile,
const std::string &  fragmentShaderFile 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
detailsdescribes the compilation failure.
vertexShaderFileis the name of the vertex shader file.
fragmentShaderFileis the name of the fragment shader file.

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