aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/QueryKit/QKQueryUtilities.m
diff options
context:
space:
mode:
Diffstat (limited to 'Frameworks/QueryKit/QKQueryUtilities.m')
-rw-r--r--Frameworks/QueryKit/QKQueryUtilities.m11
1 files changed, 10 insertions, 1 deletions
diff --git a/Frameworks/QueryKit/QKQueryUtilities.m b/Frameworks/QueryKit/QKQueryUtilities.m
index f9f43f03..3d566baa 100644
--- a/Frameworks/QueryKit/QKQueryUtilities.m
+++ b/Frameworks/QueryKit/QKQueryUtilities.m
@@ -25,8 +25,17 @@
#import "QKQueryUtilities.h"
+static NSString *QKUnrecognisedQueryOperatorException = @"QKUnrecognisedQueryOperator";
+
@implementation QKQueryUtilities
+/**
+ *
+ *
+ * @param operator
+ *
+ * @return
+ */
+ (NSString *)operatorRepresentationForType:(QKQueryOperator)operator
{
NSString *opString = nil;
@@ -37,7 +46,7 @@
opString = @"=";
break;
default:
- [NSException raise:@"" format:@"Unrecognised query operator type: %d", operator];
+ [NSException raise:QKUnrecognisedQueryOperatorException format:@"Unrecognised query operator type: %d", operator];
break;
}