Skip to content

Commit

Permalink
Merge pull request #213 from BoltsFramework/nlutsenko.constants
Browse files Browse the repository at this point in the history
Move error code constant for multiple errors into BFTask.
  • Loading branch information
nlutsenko committed Jan 4, 2016
2 parents 73a36f6 + 89ca31f commit 92e1e88
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions Bolts/Common/BFTask.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ NS_ASSUME_NONNULL_BEGIN
*/
extern NSString *const BFTaskErrorDomain;

/*!
An error code used for <BFTask taskForCompletionOfAllTasks:>, if there were multiple errors.
*/
extern NSInteger const kBFMultipleErrorsError;

/*!
An exception that is thrown if there was multiple exceptions on <BFTask taskForCompletionOfAllTasks:>.
*/
Expand Down
1 change: 1 addition & 0 deletions Bolts/Common/BFTask.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
}

NSString *const BFTaskErrorDomain = @"bolts";
NSInteger const kBFMultipleErrorsError = 80175001;
NSString *const BFTaskMultipleExceptionsException = @"BFMultipleExceptionsException";

@interface BFTask () {
Expand Down
3 changes: 0 additions & 3 deletions Bolts/Common/Bolts.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@

NS_ASSUME_NONNULL_BEGIN

/*! @abstract 80175001: There were multiple errors. */
extern NSInteger const kBFMultipleErrorsError;

@interface Bolts : NSObject

/*!
Expand Down
2 changes: 0 additions & 2 deletions Bolts/Common/Bolts.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

#import "Bolts.h"

NSInteger const kBFMultipleErrorsError = 80175001;

@implementation Bolts

+ (NSString *)version {
Expand Down

0 comments on commit 92e1e88

Please sign in to comment.