Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe CommandErrorEvent
+ Graphe d'héritage de CommandErrorEvent:

Fonctions membres publiques

 __construct (\Throwable $error, Application $application, ?AbstractCommand $command=null)
 
 getError ()
 
 getExitCode ()
 
 setError (\Throwable $error)
 
 setExitCode (int $exitCode)
 
- Fonctions membres publiques hérités de ConsoleEvent
 __construct (string $name, Application $application, ?AbstractCommand $command=null)
 
 getApplication ()
 
 getCommand ()
 
- Fonctions membres publiques hérités de Event
 addArgument ($name, $value)
 
 setArgument ($name, $value)
 
 removeArgument ($name)
 
 clearArguments ()
 
 stop ()
 
 offsetSet ($name, $value)
 
 offsetUnset ($name)
 
- Fonctions membres publiques hérités de AbstractEvent
 __construct ($name, array $arguments=[])
 
 getName ()
 
 getArgument ($name, $default=null)
 
 hasArgument ($name)
 
 getArguments ()
 
 isStopped ()
 
 stopPropagation ()
 
 count ()
 
 serialize ()
 
 __serialize ()
 
 unserialize ($serialized)
 
 __unserialize (array $data)
 
 offsetExists ($name)
 
 offsetGet ($name)
 

Attributs privés

 $error
 
 $exitCode
 

Membres hérités additionnels

- Attributs protégés hérités de AbstractEvent
 $name
 
 $arguments
 
 $stopped = false
 

Description détaillée

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

Depuis
2.0.0

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( \Throwable  $error,
Application  $application,
?AbstractCommand  $command = null 
)

Event constructor.

Paramètres
\Throwable$errorThe Throwable object with the error data.
Application$applicationThe active application.
AbstractCommand | null$commandThe command being executed.
Depuis
2.0.0

Références ConsoleEvent\$application, ConsoleEvent\$command, CommandErrorEvent\$error, Symfony\Contracts\Service\__construct(), et ConsoleEvents\COMMAND_ERROR.

Documentation des fonctions membres

◆ getError()

getError ( )

Get the error object.

Renvoie
Depuis
2.0.0

Références CommandErrorEvent\$error.

◆ getExitCode()

getExitCode ( )

Gets the exit code.

Renvoie
integer
Depuis
2.0.0

Références CommandErrorEvent\$exitCode, et null.

◆ setError()

setError ( \Throwable  $error)

Set the error object.

Paramètres
\Throwable$errorThe error object to set to the event.
Renvoie
void
Depuis
2.0.0

Références CommandErrorEvent\$error.

◆ setExitCode()

setExitCode ( int  $exitCode)

Sets the exit code.

Paramètres
integer$exitCodeThe command exit code.
Renvoie
void
Depuis
2.0.0

Références CommandErrorEvent\$exitCode, et $r.

Documentation des champs

◆ $error

◆ $exitCode

$exitCode
private

La documentation de cette classe a été générée à partir du fichier suivant :