Sha256: cd5f9b2333deeb65447a47f34e8714767bd20ff9c7638a95c15221dbe17c60aa
Contents?: true
Size: 1010 Bytes
Versions: 16
Compression:
Stored size: 1010 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) log_message msg if msg end def log_message(msg) Sqreen.log.error(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 attr_accessor :redirect_url def log_message(msg) Sqreen.log.warn(msg) end end class NotImplementedYet < Exception end class InvalidSignatureException < Exception end class Unauthorized < Exception end end
Version data entries
16 entries across 16 versions & 1 rubygems