Grok 12.0.1
grk_exceptions.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016-2024 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
22namespace grk
23{
24class DecodeUnknownMarkerAtEndOfTileException : public std::exception
25{
26};
27class PluginDecodeUnsupportedException : public std::exception
28{
29};
30class CorruptJP2BoxException : public std::exception
31{
32};
33class TruncatedPacketHeaderException : public std::exception
34{
35};
36class SparseBufferOverrunException : public std::exception
37{
38};
39class CorruptPacketException : public std::exception
40{
41};
48class InvalidMarkerException : public std::exception
49{
50 public:
51 explicit InvalidMarkerException(uint16_t marker) : marker_(marker) {}
52
54};
55class BadAsocException : public std::exception
56{
57};
58class CorruptMarkerException : public std::exception
59{
60};
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-2024 Grok Image Compression Inc.
Definition ICacheable.h:20
void grk_read(const uint8_t *buffer, TYPE *value, uint32_t numBytes)
Definition BufferedStream.h:239