forked from Glimesh/janus-ftl-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFtlExceptions.h
34 lines (30 loc) · 834 Bytes
/
FtlExceptions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* @file FtlExceptions.h
* @author Hayden McAfee ([email protected])
* @brief This file contains definitions for all of the FTL exception classes
* @version 0.1
* @date 2020-10-16
*
* @copyright Copyright (c) 2020 Hayden McAfee
*
*/
#pragma once
#include <stdexcept>
/**
* @brief Exception describing a failure with preview generation
*/
struct PreviewGenerationFailedException : std::runtime_error
{
PreviewGenerationFailedException(const char* message) throw() :
std::runtime_error(message)
{ }
};
/**
* @brief Exception describing a failure in communicating to the service connection
*/
struct ServiceConnectionCommunicationFailedException : std::runtime_error
{
ServiceConnectionCommunicationFailedException(const char* message) throw() :
std::runtime_error(message)
{ }
};