Shaka Player Embedded
Main Page
Exported Types
+
Tutorials
Basic Tutorial
Network Filters
Internal Docs
+
Internal Class List
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Typedefs
a
b
d
e
f
h
i
l
m
r
s
t
v
Enumerations
+
Enumerator
a
b
c
d
e
k
n
p
t
v
+
Properties
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
+
Related Functions
:
a
c
d
g
j
m
o
p
r
s
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
shaka
src
js
dom
dom_exception.h
Go to the documentation of this file.
1
// Copyright 2016 Google LLC
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// https://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#ifndef SHAKA_EMBEDDED_JS_DOM_DOM_EXCEPTION_H_
16
#define SHAKA_EMBEDDED_JS_DOM_DOM_EXCEPTION_H_
17
18
#include <string>
19
20
#include "
shaka/optional.h
"
21
#include "
src/js/dom/exception_code.h
"
22
#include "
src/mapping/backing_object.h
"
23
#include "
src/mapping/backing_object_factory.h
"
24
25
namespace
shaka
{
26
namespace
js {
27
namespace
dom {
28
29
class
DOMException
:
public
BackingObject
{
30
DECLARE_TYPE_INFO(
DOMException
);
31
32
public
:
33
explicit
DOMException
(
ExceptionCode
type
);
34
DOMException
(
optional<std::string>
message
,
ExceptionCode
type);
35
36
static
DOMException
*
Create
(
optional<std::string>
message,
37
optional<std::string>
name
) {
38
return
new
DOMException
(message, name);
39
}
40
41
// NOTE: Should be labelled "name", but it conflicts with type info.
42
const
std::string
error_name
;
43
const
std::string
message
;
44
std::string
stack
;
45
// Legacy numeric code.
46
const
int
code
;
47
48
private
:
49
DOMException
(
optional<std::string>
message,
optional<std::string>
name
);
50
};
51
52
class
DOMExceptionFactory
:
public
BackingObjectFactory
<DOMException> {
53
public
:
54
DOMExceptionFactory
();
55
};
56
57
}
// namespace dom
58
}
// namespace js
59
}
// namespace shaka
60
61
#endif // SHAKA_EMBEDDED_JS_DOM_DOM_EXCEPTION_H_
optional.h
exception_code.h
shaka::js::dom::DOMException
Definition:
dom_exception.h:29
shaka::ExceptionCode
ExceptionCode
Definition:
exception_code.h:22
shaka::optional< std::string >
shaka::BackingObjectFactory
Definition:
backing_object_factory.h:406
shaka::js::dom::DOMException::stack
std::string stack
Definition:
dom_exception.h:44
shaka
Definition:
async_results.h:25
shaka::js::dom::DOMException::code
const int code
Definition:
dom_exception.h:46
type
ExceptionCode type
Definition:
dom_exception.cc:37
backing_object.h
backing_object_factory.h
shaka::js::dom::DOMExceptionFactory
Definition:
dom_exception.h:52
shaka::BackingObject
Definition:
backing_object.h:56
shaka::js::dom::DOMException::DOMException
DOMException(ExceptionCode type)
Definition:
dom_exception.cc:149
shaka::js::dom::DOMException::Create
static DOMException * Create(optional< std::string > message, optional< std::string > name)
Definition:
dom_exception.h:36
shaka::js::dom::DOMException::error_name
const std::string error_name
Definition:
dom_exception.h:42
shaka::js::dom::DOMException::message
const std::string message
Definition:
dom_exception.h:43
shaka::BackingObject::name
std::string name() const
Definition:
backing_object.cc:51
Generated by
1.8.13