API Documentation
Loading...
Searching...
No Matches
GraphicsException.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------------------------
2Copyright (c) 2019, NDEVR LLC
3tyler.parke@ndevr.org
4 __ __ ____ _____ __ __ _______
5 | \ | | | __ \ | ___|\ \ / / | __ \
6 | \ | | | | \ \ | |___ \ \ / / | |__) |
7 | . \| | | |__/ / | |___ \ V / | _ /
8 | |\ |_|_____/__|_____|___\_/____| | \ \
9 |__| \__________________________________| \__\
10
11Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12Licensee a limited, non-exclusive, non-transferable, royalty-free license
13(without the right to sublicense) to use the API solely for the purpose of
14Licensee's internal development efforts to develop applications for which
15the API was provided.
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25DEALINGS IN THE SOFTWARE.
26
27Library: Graphics
28File: GraphicsException
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include "DLLInfo.h"
37
38namespace NDEVR
39{
40 /**--------------------------------------------------------------------------------------------------
41 \brief A common exeption thrown when an issue occurs within the NDEVR Graphics Engine.
42 **/
44 {
45 public:
47 {
48 e_general
49 , e_device_lost
50 };
51 explicit GraphicsException(const TranslatedString& error);
52 GraphicsException(const TranslatedString& error, const TranslatedString& category);
55 void setMessage(const TranslatedString& message) final override;
56 protected:
58 };
59 /**--------------------------------------------------------------------------------------------------
60 \brief A specific type of Exception that occurs when a GraphicsDevice is lost. This typically requires
61 a complete re-initialization of the NDEVR Graphics Engine.
62 **/
64 {
65 public:
66 explicit DeviceLostException(const TranslatedString& error);
68 };
69}
70
#define NDEVR_GRAPHICS_API
Definition DLLInfo.h:56
A specific type of Exception that occurs when a GraphicsDevice is lost. This typically requires a com...
Definition GraphicsException.h:64
DeviceLostException(const TranslatedString &error)
DeviceLostException(const TranslatedString &error, const TranslatedString &category)
Provides consistent interface to handle errors through the throw expression. All exceptions generated...
Definition Exception.hpp:47
A common exeption thrown when an issue occurs within the NDEVR Graphics Engine.
Definition GraphicsException.h:44
GraphicsExceptionType
Definition GraphicsException.h:47
GraphicsException(const TranslatedString &error, const TranslatedString &category)
void setMessage(const TranslatedString &message) final override
GraphicsExceptionType type() const
void setType(GraphicsExceptionType type)
GraphicsException(const TranslatedString &error)
GraphicsExceptionType m_type
Definition GraphicsException.h:57
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
Definition TranslatedString.h:13
Definition ACIColor.h:37