/src/spotify-json/src/decode_exception.cpp
Line | Count | Source |
1 | | /* |
2 | | * Copyright (c) 2015-2019 Spotify AB |
3 | | * |
4 | | * Licensed under the Apache License, Version 2.0 (the "License"); you may not |
5 | | * use this file except in compliance with the License. You may obtain a copy of |
6 | | * the License at |
7 | | * |
8 | | * http://www.apache.org/licenses/LICENSE-2.0 |
9 | | * |
10 | | * Unless required by applicable law or agreed to in writing, software |
11 | | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
12 | | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
13 | | * License for the specific language governing permissions and limitations under |
14 | | * the License. |
15 | | */ |
16 | | |
17 | | #include <spotify/json/decode_exception.hpp> |
18 | | |
19 | | namespace spotify { |
20 | | namespace json { |
21 | | |
22 | | decode_exception::decode_exception(const char *what, size_t offset) |
23 | 2.22k | : runtime_error(what), _offset(offset) {} |
24 | | |
25 | | decode_exception::decode_exception(decode_exception &&exception, size_t offset) |
26 | 0 | : runtime_error(std::move(exception)), _offset(offset) {} |
27 | | |
28 | | } // namespace json |
29 | | } // namespace spotify |