#include <error.h>
Represents a Player error. This can be either a Shaka error or a more generic JavaScript error. Shaka errors have the category/code/severity fields set; native errors just have the message.
- See also
- https://github.com/google/shaka-player/blob/master/lib/util/error.js
Definition at line 34 of file error.h.
§ Error() [1/4]
shaka::Error::Error |
( |
const std::string & |
message | ) |
|
Creates an object with the given error category and code.
Definition at line 23 of file error.cc.
§ Error() [2/4]
shaka::Error::Error |
( |
int |
severity, |
|
|
int |
category, |
|
|
int |
code, |
|
|
const std::string & |
message |
|
) |
| |
Creates an object with the given error category and code.
Definition at line 26 of file error.cc.
§ Error() [3/4]
shaka::Error::Error |
( |
const Error & |
other | ) |
|
§ Error() [4/4]
shaka::Error::Error |
( |
Error && |
| ) |
|
|
default |
§ ~Error()
§ operator=() [1/2]
Error & shaka::Error::operator= |
( |
const Error & |
other | ) |
|
§ operator=() [2/2]
§ category
int shaka::Error::category |
The category of the error, if this is a Shaka error. This is the same as shaka.util.Error.Category.
Definition at line 63 of file error.h.
§ code
The specific code of the error, if this is a Shaka error. This is the same as shaka.util.Error.Code.
Definition at line 68 of file error.h.
§ message
std::string shaka::Error::message |
The error message.
Definition at line 53 of file error.h.
§ severity
int shaka::Error::severity |
The Shaka severity of the error, if this is a Shaka error. This is the same as shaka.util.Error.Severity.
Definition at line 58 of file error.h.
The documentation for this class was generated from the following files: