Exception: Cri::Command::CriExitException Private

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cri/command.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Signals that Cri should abort execution. Unless otherwise specified using the `hard_exit` param, this exception will cause Cri to exit the running process.

Instance Method Summary collapse

Constructor Details

#initialize(is_error:) ⇒ CriExitException

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of CriExitException.


46
47
48
# File 'lib/cri/command.rb', line 46

def initialize(is_error:)
  @is_error = is_error
end

Instance Method Details

#error?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


50
51
52
# File 'lib/cri/command.rb', line 50

def error?
  @is_error
end