[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/joomla/console/src/Event/ -> CommandErrorEvent.php (summary)

Part of the Joomla Framework Console Package

Copyright: Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 114 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

CommandErrorEvent:: (5 methods):
  __construct()
  getError()
  getExitCode()
  setError()
  setExitCode()


Class: CommandErrorEvent  - X-Ref

Event triggered when an uncaught Throwable is received by the application from a command.

__construct(\Throwable $error, Application $application, ?AbstractCommand $command = null)   X-Ref
Event constructor.

param: \Throwable            $error        The Throwable object with the error data.
param: Application           $application  The active application.
param: AbstractCommand|null  $command      The command being executed.

getError()   X-Ref
Get the error object.

return: \Throwable

getExitCode()   X-Ref
Gets the exit code.

return: integer

setError(\Throwable $error)   X-Ref
Set the error object.

param: \Throwable  $error  The error object to set to the event.
return: void

setExitCode(int $exitCode)   X-Ref
Sets the exit code.

param: integer  $exitCode  The command exit code.
return: void



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer