grk_exceptions.h
Go to the documentation of this file.
/*
* Copyright (C) 2016-2023 Grok Image Compression Inc.
*
* This source code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This source code is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*
*/
#pragma once
#include <stdexcept>
namespace grk
{
class DecodeUnknownMarkerAtEndOfTileException : public std::exception
{
};
class PluginDecodeUnsupportedException : public std::exception
{
};
class CorruptJP2BoxException : public std::exception
{
};
class TruncatedPacketHeaderException : public std::exception
{
};
class SparseBufferOverrunException : public std::exception
{
};
class CorruptPacketException : public std::exception
{
};
class CorruptPacketHeaderException : public CorruptPacketException
{
};
class CorruptPacketDataException : public CorruptPacketException
{
};
class InvalidMarkerException : public std::exception
{
public:
explicit InvalidMarkerException(uint16_t marker) : marker_(marker) {}
uint16_t marker_;
};
class BadAsocException : public std::exception
{
};
class CorruptMarkerException : public std::exception
{
};
class CorruptTLMException : public CorruptMarkerException
{
};
class CorruptSOTMarkerException : public CorruptMarkerException
{
};
} // namespace grk
grk::BadAsocException
Definition grk_exceptions.h:56
grk::CorruptJP2BoxException
Definition grk_exceptions.h:31
grk::CorruptMarkerException
Definition grk_exceptions.h:59
grk::CorruptPacketDataException
Definition grk_exceptions.h:46
grk::CorruptPacketException
Definition grk_exceptions.h:40
grk::CorruptPacketHeaderException
Definition grk_exceptions.h:43
grk::CorruptSOTMarkerException
Definition grk_exceptions.h:65
grk::CorruptTLMException
Definition grk_exceptions.h:62
grk::DecodeUnknownMarkerAtEndOfTileException
Definition grk_exceptions.h:25
grk::InvalidMarkerException
Definition grk_exceptions.h:49
grk::InvalidMarkerException::marker_
uint16_t marker_
Definition grk_exceptions.h:53
grk::InvalidMarkerException::InvalidMarkerException
InvalidMarkerException(uint16_t marker)
Definition grk_exceptions.h:51
grk::PluginDecodeUnsupportedException
Definition grk_exceptions.h:28
grk::SparseBufferOverrunException
Definition grk_exceptions.h:37
grk::TruncatedPacketHeaderException
Definition grk_exceptions.h:34
grk
Copyright (C) 2016-2023 Grok Image Compression Inc.
Definition ICacheable.h:20
grk::grk_read
void grk_read(const uint8_t *buffer, TYPE *value, uint32_t numBytes)
Definition BufferedStream.h:239