summaryrefslogtreecommitdiff
path: root/lib/classifier/errors.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/classifier/errors.rb')
-rw-r--r--lib/classifier/errors.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/classifier/errors.rb b/lib/classifier/errors.rb
new file mode 100644
index 0000000..89fd6b0
--- /dev/null
+++ b/lib/classifier/errors.rb
@@ -0,0 +1,19 @@
+# rbs_inline: enabled
+
+# Author:: Lucas Carlson (mailto:lucas@rufy.com)
+# Copyright:: Copyright (c) 2005 Lucas Carlson
+# License:: LGPL
+
+module Classifier
+ # Base error class for all Classifier errors
+ class Error < StandardError; end
+
+ # Raised when reload would discard unsaved changes
+ class UnsavedChangesError < Error; end
+
+ # Raised when a storage operation fails
+ class StorageError < Error; end
+
+ # Raised when using an unfitted model
+ class NotFittedError < Error; end
+end