PxCrypt v0.2.2
Encrypt data within an image
|
The MultiDecoder::Error class is used to report errors during multi-image decoding. More...
#include <>>
Inherits Qx::AbstractError< "PxCrypt::MultiDecoder::Error", 6879 >.
Public Types | |
enum | Type { NoError , MissingSources , InvalidSource , MissingMediums , DimensionMismatch , NotLargeEnough , InvalidMeta , PartMismatch , PartsMissing , ChecksumMismatch , SkimFailed } |
Public Member Functions | |
Error (Type t=NoError, qsizetype idx=-1, const QString &s={}) | |
QString | errorString () const |
qsizetype | imageIndex () const |
bool | isValid () const |
QString | specific () const |
Type | type () const |
This enum specifies the type of encoding error that occurred.
PxCrypt::MultiDecoder::Error::Error | ( | Type | t = NoError, |
qsizetype | idx = -1, | ||
const QString & | s = {} ) |
Constructs an error of type t, with specific information s
, related to the input image at index idx.
-1
is used to indicate an error that is not tied to a specific image.QString PxCrypt::MultiDecoder::Error::errorString | ( | ) | const |
Returns the string representation of the error.
qsizetype PxCrypt::MultiDecoder::Error::imageIndex | ( | ) | const |
Returns the index of the image that caused the error, or -1
if the error is not image specific.
bool PxCrypt::MultiDecoder::Error::isValid | ( | ) | const |
Returns true
if the error's type is one other than NoError; otherwise, returns false
.
QString PxCrypt::MultiDecoder::Error::specific | ( | ) | const |
Returns instance specific error information, if any.
MultiDecoder::Error::Type PxCrypt::MultiDecoder::Error::type | ( | ) | const |
Returns the type of decoding error.