Shaka Player Embedded
error_objc.h
Go to the documentation of this file.
1 // Copyright 2019 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_ERROR_OBJC_H_
16 #define SHAKA_EMBEDDED_ERROR_OBJC_H_
17 
18 #import <Foundation/Foundation.h>
19 
20 #include "macros.h"
21 
22 NS_ASSUME_NONNULL_BEGIN
23 
25 FOUNDATION_EXPORT const NSErrorDomain ShakaPlayerErrorDomain;
27 FOUNDATION_EXPORT const NSErrorUserInfoKey ShakaPlayerErrorCategoryKey;
29 FOUNDATION_EXPORT const NSErrorUserInfoKey ShakaPlayerErrorSeverityKey;
30 
39 @interface ShakaPlayerError : NSError
40 
41 - (instancetype) initWithMessage:(NSString *)message;
42 
43 - (instancetype) initWithMessage:(NSString *)message
44  severity:(NSInteger)severity
45  category:(NSInteger)category
46  code:(NSInteger)code;
47 
49 @property(atomic) NSString *message;
50 
55 @property(atomic) NSInteger category;
56 
61 @property (atomic) NSInteger severity;
62 
63 @end
64 
65 NS_ASSUME_NONNULL_END
66 #endif // SHAKA_EMBEDDED_ERROR_OBJC_H_
#define SHAKA_EXPORT
Definition: macros.h:30
FOUNDATION_EXPORT const NSErrorUserInfoKey ShakaPlayerErrorCategoryKey
Definition: error_objc.h:27
FOUNDATION_EXPORT const NSErrorUserInfoKey ShakaPlayerErrorSeverityKey
Definition: error_objc.h:29
NS_ASSUME_NONNULL_BEGIN FOUNDATION_EXPORT const NSErrorDomain ShakaPlayerErrorDomain
Definition: error_objc.h:25
NSInteger severity
Definition: error_objc.h:61
const char * message
NSInteger category
Definition: error_objc.h:55