Grok  10.0.3
grk_exceptions.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016-2022 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 SparseBufferOverrunException : public std::exception
37 {
38 };
39 class CorruptPacketException : public std::exception
40 {
41 };
43 {
44 };
46 {
47 };
48 class InvalidMarkerException : public std::exception
49 {
50  public:
51  explicit InvalidMarkerException(uint16_t marker) : marker_(marker) {}
52 
53  uint16_t marker_;
54 };
55 class BadAsocException : public std::exception
56 {
57 };
58 class CorruptMarkerException : public std::exception
59 {
60 };
62 {
63 };
65 {
66 };
67 
68 } // namespace grk
Definition: grk_exceptions.h:56
Definition: grk_exceptions.h:31
Definition: grk_exceptions.h:59
Definition: grk_exceptions.h:46
Definition: grk_exceptions.h:40
Definition: grk_exceptions.h:43
Definition: grk_exceptions.h:65
Definition: grk_exceptions.h:62
Definition: grk_exceptions.h:25
Definition: grk_exceptions.h:49
uint16_t marker_
Definition: grk_exceptions.h:53
InvalidMarkerException(uint16_t marker)
Definition: grk_exceptions.h:51
Definition: grk_exceptions.h:28
Definition: grk_exceptions.h:37
Definition: grk_exceptions.h:34
Copyright (C) 2016-2022 Grok Image Compression Inc.
Definition: ICacheable.h:20