summaryrefslogtreecommitdiff
path: root/config/initializers/error_constants.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers/error_constants.rb')
-rw-r--r--config/initializers/error_constants.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/initializers/error_constants.rb b/config/initializers/error_constants.rb
index fdd3624..bf2dad4 100644
--- a/config/initializers/error_constants.rb
+++ b/config/initializers/error_constants.rb
@@ -1,3 +1,8 @@
require 'ruby-srp'
WRONG_PASSWORD = SRP::WrongPassword
+
+# In case we use a different ORM at some point
+VALIDATION_FAILED = CouchRest::Model::Errors::Validations
+RECORD_NOT_FOUND = CouchRest::Model::DocumentNotFound
+RESOURCE_NOT_FOUDN = CouchRest::NotFound