forked from EFEducationFirstMobile/librabbitmq-objc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAMQPError.h
More file actions
29 lines (20 loc) · 751 Bytes
/
AMQPError.h
File metadata and controls
29 lines (20 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// AMQPError.h
// AMQPKit
//
// Created by Andrew Mackenzie-Ross on 23/02/2015.
// Copyright (c) 2015 librabbitmq. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "amqp.h"
typedef NS_ENUM(NSUInteger, AMQPErrorCode) {
AMQPErrorCodeSockInitError = AMQP_STATUS_TCP_SOCKETLIB_INIT_ERROR,
AMQPErrorCodeSockError = AMQP_STATUS_SOCKET_ERROR,
AMQPErrorCodeServerError = -0x0500,
};
@interface AMQPError : NSError
+ (NSString *)domain;
+ (instancetype)errorWithCode:(AMQPErrorCode)code userInfo:(NSDictionary *)userInfo;
+ (instancetype)errorWithCode:(AMQPErrorCode)code reply_t:(amqp_rpc_reply_t)reply;
+ (instancetype)errorWithCode:(AMQPErrorCode)code format:(NSString *)format,... NS_FORMAT_FUNCTION(2,3);
@end