Nextcloud PHP API (master)

HintException extends Exception
in package

An Exception class with the intention to be presented to the end user

Tags
since
23.0.0

Table of Contents

Properties

$hint  : string

Methods

__construct()  : mixed
HintException constructor.
__toString()  : string
Returns a string representation of this Exception that includes the error code, the message and the hint.
getHint()  : string
Returns the hint with the intention to be presented to the end user. If an empty hint was specified upon instantiation, the message is returned instead.

Properties

Methods

__construct()

HintException constructor.

public __construct(string $message[, string $hint = '' ][, int $code = 0 ][, Exception|null $previous = null ]) : mixed
Parameters
$message : string

The error message. It is not intended to be shown to the end user unless the hint is empty, and therefore should not be translated.

$hint : string = ''

A useful message presented to the end user. It should be translated, but must not contain sensitive data.

$code : int = 0
$previous : Exception|null = null
Tags
since
23.0.0

__toString()

Returns a string representation of this Exception that includes the error code, the message and the hint.

public __toString() : string
Tags
since
23.0.0
Return values
string

getHint()

Returns the hint with the intention to be presented to the end user. If an empty hint was specified upon instantiation, the message is returned instead.

public getHint() : string
Tags
since
23.0.0
Return values
string
On this page

Search results