diff --git a/models/Query/Builder.cfc b/models/Query/Builder.cfc index 65d83bfd..18864411 100644 --- a/models/Query/Builder.cfc +++ b/models/Query/Builder.cfc @@ -137,7 +137,7 @@ component displayname='Builder' { } else if (isInvalidCombinator(arguments.combinator)) { throw( - type = 'InvalidArgumentException', + type = 'InvalidSQLType', message = 'Illegal combinator' ); } @@ -148,7 +148,7 @@ component displayname='Builder' { } else if (isInvalidOperator(arguments.operator)) { throw( - type = 'InvalidArgumentException', + type = 'InvalidSQLType', message = 'Illegal operator' ); } diff --git a/models/Query/JoinClause.cfc b/models/Query/JoinClause.cfc index 1029e04d..2d0c714b 100644 --- a/models/Query/JoinClause.cfc +++ b/models/Query/JoinClause.cfc @@ -26,7 +26,7 @@ component displayname='JoinClause' { required string table ) { if (! arrayContainsNoCase(types, arguments.type)) { - throw('[#type#] is not a valid sql join type'); + throw(type = 'InvalidSQLType', message = '[#type#] is not a valid sql join type'); } variables.type = arguments.type; @@ -46,7 +46,7 @@ component displayname='JoinClause' { } if (! arrayContainsNoCase(operators, arguments.operator)) { - throw('[#operator#] is not a valid sql operator type'); + throw(type = 'InvalidSQLType', message = '[#operator#] is not a valid sql operator type'); } if (arguments.where) {