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 Throwable|null getCurrentError ( ) |
public function getCurrentError(): ?Throwable
{
return $this->currentError;
}
Whether a proxy has current error.
| public boolean hasCurrentError ( ) | ||
| return | boolean |
|
|---|---|---|
public function hasCurrentError(): bool
{
return $this->currentError !== null;
}
Throws current error again.
| protected void repeatError ( Throwable $error ) | ||
| $error | Throwable |
A throwable object. |
| throws | Throwable |
An exact error previously stored in {@see $currentError}. |
|---|---|---|
protected function repeatError(Throwable $error): void
{
$this->currentError = $error;
throw $error;
}
Resets current error.
| protected void resetCurrentError ( ) |
protected function resetCurrentError(): void
{
$this->currentError = null;
}
Signup or Login in order to comment.