Exception: Krill::KrillSyntaxError

Inherits:
KrillBaseError show all
Defined in:
lib/krill/protocol_sandbox.rb

Overview

Exception class for protocol syntax errors

Instance Attribute Summary

Attributes inherited from KrillBaseError

#error, #namespace, #operation_type

Instance Method Summary collapse

Methods inherited from KrillBaseError

#error_backtrace, #error_message, #operation_path

Constructor Details

#initialize(operation_type:, error:, message: 'Syntax error in operation type') ⇒ KrillSyntaxError

Create a KrillSyntaxError object indicating an error in the given operation type.

Parameters:

  • operation_type (OperationType)

    the operation type

  • error (Exception)

    the error object

  • message (String)

    the error message



239
240
241
# File 'lib/krill/protocol_sandbox.rb', line 239

def initialize(operation_type:, error:, message: 'Syntax error in operation type')
  super(operation_type: operation_type, error: error, message: message)
end