Grok  9.5.0
grk_exceptions.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016-2021 Grok Image Compression Inc.
3  *
4  * This source code is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Affero General Public License, version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This source code is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Affero General Public License for more details.
12  *
13  * You should have received a copy of the GNU Affero General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  *
17  */
18 
19 #pragma once
20 #include <stdexcept>
21 
22 namespace grk
23 {
24 class DecodeUnknownMarkerAtEndOfTileException : public std::exception
25 {
26 };
27 class PluginDecodeUnsupportedException : public std::exception
28 {
29 };
30 class CorruptJP2BoxException : public std::exception
31 {
32 };
33 class TruncatedPacketHeaderException : public std::exception
34 {
35 };
36 class CorruptPacketHeaderException : public std::exception
37 {
38 };
39 class InvalidMarkerException : public std::exception
40 {
41  public:
42  explicit InvalidMarkerException(uint16_t marker) : m_marker(marker) {}
43 
44  uint16_t m_marker;
45 };
46 class BadAsocException : public std::exception
47 {
48 };
49 } // namespace grk
Definition: grk_exceptions.h:47
Definition: grk_exceptions.h:31
Definition: grk_exceptions.h:37
Definition: grk_exceptions.h:25
Definition: grk_exceptions.h:40
uint16_t m_marker
Definition: grk_exceptions.h:44
InvalidMarkerException(uint16_t marker)
Definition: grk_exceptions.h:42
Definition: grk_exceptions.h:28
Definition: grk_exceptions.h:34
Copyright (C) 2016-2021 Grok Image Compression Inc.
Definition: ICacheable.h:20