brentsnook/shokkenki-consumer

View on GitHub
lib/shokkenki/consumer/stubber/server_application_error.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Shokkenki
  module Consumer
    module Stubber
      class ServerApplicationError < StandardError
        def initialize error
          super "An error occurred in the stub server: #{error.message}"
          @error = error
        end

        def set_backtrace backtrace
          super (@error.backtrace || []) + backtrace
        end
      end
    end
  end
end