media3-0/apki.org

View on GitHub
app/lib/exceptions.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Exceptions
  class AccessDenied < StandardError
    def initialize(msg = 'Odmowa dostępu')
      super(msg)
    end
  end

  class NotFound < StandardError
    def initialize(msg = 'Nie znaleziono takiego zasobu')
      super(msg)
    end
  end

  class ExpressionTypeNotRecognized <  StandardError
    def initialize(msg = 'Nie rozpoznano typu polecenia')
      super(msg)
    end
  end
end