Trait Yiisoft\Proxy\ProxyTrait
| Implemented by | Yiisoft\Proxy\ObjectProxy |
|---|
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getCurrentError() | Gets current error. | Yiisoft\Proxy\ProxyTrait |
| hasCurrentError() | Whether a proxy has current error. | Yiisoft\Proxy\ProxyTrait |
Protected Methods
| Method | Description | Defined By |
|---|---|---|
| repeatError() | Throws current error again. | Yiisoft\Proxy\ProxyTrait |
| resetCurrentError() | Resets current error. | Yiisoft\Proxy\ProxyTrait |
Method Details
Gets current error.
| public getCurrentError( ): Throwable|null |
public function getCurrentError(): ?Throwable
{
return $this->currentError;
}
Whether a proxy has current error.
| public hasCurrentError( ): boolean | ||
| return | boolean |
|
|---|---|---|
public function hasCurrentError(): bool
{
return $this->currentError !== null;
}
Throws current error again.
| protected repeatError( Throwable $error ): void | ||
| $error | Throwable |
A throwable object. |
| throws | Throwable |
An exact error previously stored in $currentError. |
|---|---|---|
protected function repeatError(Throwable $error): void
{
$this->currentError = $error;
throw $error;
}
Resets current error.
| protected resetCurrentError( ): void |
protected function resetCurrentError(): void
{
$this->currentError = null;
}
Signup or Login in order to comment.