PxCrypt v0.2.2
Encrypt data within an image
|
The MultiEncoder::Error class is used to report errors during multi-image encoding. More...
#include <>>
Inherits Qx::AbstractError< "PxCrypt::MultiEncoder::Error", 6979 >.
Public Types | |
enum | Type { NoError , MissingPayload , MissingMediums , InvalidImage , WontFit , InvalidBpc , WeaveFailed } |
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.
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::MultiEncoder::Error::errorString | ( | ) | const |
Returns the string representation of the error.
qsizetype PxCrypt::MultiEncoder::Error::imageIndex | ( | ) | const |
Returns the index of the image that caused the error, or -1
if the error is not image specific.
bool PxCrypt::MultiEncoder::Error::isValid | ( | ) | const |
Returns true
if the error's type is one other than NoError; otherwise, returns false
.
QString PxCrypt::MultiEncoder::Error::specific | ( | ) | const |
Returns instance specific error information, if any.
Error::Type PxCrypt::MultiEncoder::Error::type | ( | ) | const |
Returns the type of encoding error.