aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/exceptions.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-06-20 15:36:16 -0700
committerelijah <elijah@riseup.net>2014-06-20 15:36:16 -0700
commit6ab171af332cf06ec6de6cc560dae525f2460710 (patch)
tree7ca6965d24753e73fb28ff05a31de2b2fa0bf62c /lib/leap_cli/exceptions.rb
parentb034cc5afb72b21e03b1e34080f2fbdfa4d0ad1a (diff)
downloadleap_cli-6ab171af332cf06ec6de6cc560dae525f2460710.tar.gz
leap_cli-6ab171af332cf06ec6de6cc560dae525f2460710.tar.bz2
moved all json macros to the platform (breaks compatibility with earlier platforms)
Diffstat (limited to 'lib/leap_cli/exceptions.rb')
-rw-r--r--lib/leap_cli/exceptions.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/leap_cli/exceptions.rb b/lib/leap_cli/exceptions.rb
index cd27f14..27993c2 100644
--- a/lib/leap_cli/exceptions.rb
+++ b/lib/leap_cli/exceptions.rb
@@ -8,4 +8,25 @@ module LeapCli
end
end
+ class FileMissing < StandardError
+ attr_accessor :path, :options
+ def initialize(path, options={})
+ @path = path
+ @options = options
+ end
+ def to_s
+ @path
+ end
+ end
+
+ class AssertionFailed < StandardError
+ attr_accessor :assertion
+ def initialize(assertion)
+ @assertion = assertion
+ end
+ def to_s
+ @assertion
+ end
+ end
+
end \ No newline at end of file