Skip to content

Commit

Permalink
Move Pincaster::Exceptions in their own file
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Berthomier committed Jul 15, 2010
1 parent 7941e8a commit 70d81ac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/pincaster.rb
Expand Up @@ -4,6 +4,7 @@
module Pincaster
VERSION = '0.1'

autoload :Server, 'pincaster/server'
autoload :Layer, 'pincaster/layer'
autoload :Exception, 'pincaster/exception'
autoload :Server, 'pincaster/server'
autoload :Layer, 'pincaster/layer'
end
9 changes: 9 additions & 0 deletions lib/pincaster/exception.rb
@@ -0,0 +1,9 @@
module Pincaster
class Pincaster::Exception < Exception
end
end

class Pincaster::NoSuchLayer < Pincaster::Exception; end
class Pincaster::LayerAlreadyExist < Pincaster::Exception; end
class Pincaster::LayerError < Pincaster::Exception; end
class Pincaster::NoServer < Pincaster::Exception; end

0 comments on commit 70d81ac

Please sign in to comment.