Sha256: f96c2ca4f044df27bd49d87ee05f421b9ff2c3cb9a606fedef29fac1adf14a21

Contents?: true

Size: 299 Bytes

Versions: 22

Compression:

Stored size: 299 Bytes

Contents

module VMC
  class UserFriendlyError < RuntimeError
    def initialize(msg)
      @message = msg
    end

    def to_s
      @message
    end
  end

  class UserError < UserFriendlyError; end

  class NotAuthorized < UserError
    def initialize
      @message = "Not authorized."
    end
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
vmc-0.5.1.rc6 lib/vmc/errors.rb
vmc-0.5.1.rc5 lib/vmc/errors.rb