Sha256: 080b8c4b3deddae59a3e3a028372d9be58a3ce79fde9c22b7059b4d974637a9b

Contents?: true

Size: 893 Bytes

Versions: 3

Compression:

Stored size: 893 Bytes

Contents

# This module is where you can override the default behavior of exception classes or add other exception classes.
# The default behavior of the exception classes is to create an exception with the message of the constant.
# Exception classes that override generated exception classes must be defined as children of their parent module's generated class.
# Example:
# module ApplicationException
#   include Errationalify
#
#   class ServiceFault < Loggable
#     def initialize(service_name)
#       message = sprintf(ApplicationError::SERVICE_FAULT, service_name)
#     end
#   end
# end
# module ApplicationError
#   module General
#     UNEXPECTED = "An error has occurred in the application. Please try again."
#   end
#   module Loggable
#     SERVICE_FAULT = "The response from %s cannot be processed. Please try again"
#   end
# end

module RailsAppException
  include Errationalify
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
errational-0.12.04 test/rails_app/lib/errational/rails_app_exception.rb
errational-0.9.09 test/rails_app/lib/errational/rails_app_exception.rb
errational-0.8.16 test/rails_app/lib/errational/rails_app_exception.rb