Shaka Player Embedded
shaka
src
public
error.cc
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
#include "
shaka/error.h
"
16
17
#include "
src/util/macros.h
"
18
19
namespace
shaka
{
20
21
class
Error::Impl
{};
22
23
Error::Error
(
const
std::string&
message
)
24
: message(message),
severity
(0),
category
(0),
code
(0) {}
25
26
Error::Error
(
int
severity
,
int
category
,
int
code
,
const
std::string&
message
)
27
: message(message), severity(severity), category(category), code(code) {}
28
29
Error::Error
(
const
Error
& other)
30
:
message
(other.
message
),
31
severity
(other.
severity
),
32
category
(other.
category
),
33
code
(other.
code
) {}
34
35
Error::Error
(
Error
&&) =
default
;
36
37
Error::~Error
() {}
38
39
Error
&
Error::operator=
(
const
Error
& other) {
40
message
= other.
message
;
41
severity
= other.
severity
;
42
category
= other.
category
;
43
code
= other.
code
;
44
45
return
*
this
;
46
}
47
48
Error
&
Error::operator=
(
Error
&&) =
default
;
49
50
}
// namespace shaka
shaka::Error::code
int code
Definition:
error.h:68
macros.h
shaka::Error::operator=
Error & operator=(const Error &)
Definition:
error.cc:39
shaka::Error::Error
Error(const std::string &message)
Definition:
error.cc:23
shaka::Error::category
int category
Definition:
error.h:63
shaka::Error::~Error
~Error()
Definition:
error.cc:37
shaka::Error::message
std::string message
Definition:
error.h:53
shaka
Definition:
async_results.h:25
error.h
shaka::Error::severity
int severity
Definition:
error.h:58
shaka::Error::Impl
Definition:
error.cc:21
shaka::Error
Definition:
error.h:34
Generated by
1.8.13