27 #include <com/avpkit/core/IError.h>
28 #include <com/avpkit/core/Error.h>
30 namespace com {
namespace avpkit {
namespace core
46 return Error::make(errorNumber);
52 return Error::make(type);
58 return Error::typeToErrorNumber(type);
64 return Error::errorNumberToType(errNo);
Maps from int return codes to defined Error values.
static int32_t typeToErrorNumber(Type type)
Translate an a type to an error number.
static IError * make(int32_t errorNumber)
Create a new IError object from a return value passed in from AVPKit.
static Type errorNumberToType(int32_t errorNo)
Translate an error number to a type.
Type
A set of errors that AVPKit knows about.
WARNING: Do not use logging in this class, and do not set any static file variables to values other t...