Sha256: 95ff90ddd94fd93ec69fc346d325736bd735a17bacc3090292ae6f3d723601e8

Contents?: true

Size: 724 Bytes

Versions: 9

Compression:

Stored size: 724 Bytes

Contents

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

require 'sqreen/log'

module Sqreen
  # TODO: do we really want this to be StandardError?
  # 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
end

require 'sqreen/token_not_found_exception'
require 'sqreen/token_invalid_exception'
require 'sqreen/attack_blocked'
require 'sqreen/not_implemented_yet'
require 'sqreen/invalid_signature_exception'
require 'sqreen/unauthorized'
require 'sqreen/waf_error'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sqreen-1.18.6-java lib/sqreen/exception.rb
sqreen-1.18.6 lib/sqreen/exception.rb
sqreen-1.18.5-java lib/sqreen/exception.rb
sqreen-1.18.5 lib/sqreen/exception.rb
sqreen-1.18.4-java lib/sqreen/exception.rb
sqreen-1.18.4 lib/sqreen/exception.rb
sqreen-1.18.3-java lib/sqreen/exception.rb
sqreen-1.18.3 lib/sqreen/exception.rb
sqreen-1.18.3.beta2 lib/sqreen/exception.rb