0 follower

Interface Yiisoft\FriendlyException\FriendlyExceptionInterface

ExtendsThrowable

Provides a friendly name and a possible solution for an exception.

Error handlers may consider the interface to render additional information right at the error screen.

Method Details

Hide inherited methods

getName() public abstract method

public abstract string getName ( )
return string

Human understandable exception name.

                public function getName(): string;

            
getSolution() public abstract method

public abstract string|null getSolution ( )
return string|null

Suggestion on how to fix an exception.

  1. Make it as short as possible.
  2. Do not use HTML tags.
  3. Use simple markdown.

                public function getSolution(): ?string;