HintException

class OC\HintException
Class HintException
An Exception class with the intention to be presented to the end user
Source:lib/private/HintException.php#37
Parent:Exception

Properties

Methods

public OC\HintException::__construct($message, $hint="", $code=0, $previous=null)
HintException constructor.
Source:

lib/private/HintException.php#52

Parameters:
  • $message (string) The error message. It will be not revealed to the

the user (unless the hint is empty) and thus should be not translated. * $hint (string) A useful message that is presented to the end user. It should be translated, but must not contain sensitive data. * $code (int) * $previous (Exception | null)

public OC\HintException::__toString()
Returns a string representation of this Exception that includes the error
code, the message and the hint.
Source:lib/private/HintException.php#63
Returns:string
public OC\HintException::getHint()
Returns the hint with the intention to be presented to the end user. If
an empty hint was specified upon instatiation, the message is returned
instead.
Source:lib/private/HintException.php#74
Returns:string