Sha256: 5bc5870ec8fc17e0c761dff688793daeff422ae765bd702cac807412e7efdaf5

Contents?: true

Size: 767 Bytes

Versions: 8

Compression:

Stored size: 767 Bytes

Contents

# Copyright (c) 2015 Sqreen. All Rights Reserved.
# Please refer to our terms for more information: https://www.sqreen.io/terms.html

require 'sqreen/log'

module Sqreen
  # Base exeception class for sqreen
  class Exception < ::StandardError
    def initialize(msg = nil, *args)
      super(msg, *args)
      Sqreen.log.error msg if msg
    end
  end

  # When the token is not found
  class TokenNotFoundException < Exception
  end

  # When the token is invalid
  class TokenInvalidException < Exception
  end

  # This exception name is particularly important since it is often seen by
  # Sqreen users when watching their logs. It should not raise any concern to
  # them.
  class AttackBlocked < Exception
  end

  class NotImplementedYet < Exception
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sqreen-0.7.01462198090-java lib/sqreen/exception.rb
sqreen-0.7.01462198090 lib/sqreen/exception.rb
sqreen-0.7.01461829538-java lib/sqreen/exception.rb
sqreen-0.7.01461829538 lib/sqreen/exception.rb
sqreen-0.7.01461767359-java lib/sqreen/exception.rb
sqreen-0.7.01461767359 lib/sqreen/exception.rb
sqreen-0.7.01461158029-java lib/sqreen/exception.rb
sqreen-0.7.01461158029 lib/sqreen/exception.rb