Shaka Player Embedded
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Public Member Functions | Public Attributes | List of all members
shaka::Error Class Referencefinal

#include <error.h>

Classes

class  Impl
 

Public Member Functions

 Error (const std::string &message)
 
 Error (int severity, int category, int code, const std::string &message)
 
 Error (const Error &)
 
 Error (Error &&)
 
 ~Error ()
 
Erroroperator= (const Error &)
 
Erroroperator= (Error &&)
 

Public Attributes

std::string message
 
int severity
 
int category
 
int code
 

Detailed Description

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.

Constructor & Destructor Documentation

§ 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)

Definition at line 29 of file error.cc.

§ Error() [4/4]

shaka::Error::Error ( Error &&  )
default

§ ~Error()

shaka::Error::~Error ( )

Definition at line 37 of file error.cc.

Member Function Documentation

§ operator=() [1/2]

Error & shaka::Error::operator= ( const Error other)

Definition at line 39 of file error.cc.

§ operator=() [2/2]

Error & shaka::Error::operator= ( Error &&  )
default

Member Data Documentation

§ 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

int shaka::Error::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: