Skip to content

Commit

Permalink
Add a new error class for insufficient resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanbergen committed May 29, 2012
1 parent b238ee9 commit 80ff580
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/vertica/error.rb
Expand Up @@ -26,10 +26,11 @@ def self.from_error_response(error_response, sql)
end

QUERY_ERROR_CLASSES = {
'55V03' => (LockFailure = Class.new(Vertica::Error::QueryError)),
'53200' => (OutOfMemory = Class.new(Vertica::Error::QueryError)),
'42601' => (SyntaxError = Class.new(Vertica::Error::QueryError)),
'42V01' => (MissingRelation = Class.new(Vertica::Error::QueryError)),
'42703' => (MissingColumn = Class.new(Vertica::Error::QueryError))
'55V03' => (LockFailure = Class.new(Vertica::Error::QueryError)),
'53000' => (InsufficientResources = Class.new(Vertica::Error::QueryError)),
'53200' => (OutOfMemory = Class.new(Vertica::Error::QueryError)),
'42601' => (SyntaxError = Class.new(Vertica::Error::QueryError)),
'42V01' => (MissingRelation = Class.new(Vertica::Error::QueryError)),
'42703' => (MissingColumn = Class.new(Vertica::Error::QueryError))
}
end

0 comments on commit 80ff580

Please sign in to comment.