BadRequestException
extends HintException
in package
Class BadRequestException
Tags
Table of Contents
Properties
- $hint : mixed
- $parameterList : array<string|int, string>
Methods
- __construct() : mixed
- BadRequestException 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.
- getReturnMessage() : array{message: string, validationErrors: array{message: string, name: string}[]}
- get array with the return message as defined in the OCM API
Properties
$hint
private
mixed
$hint
$parameterList
private
array<string|int, string>
$parameterList
Methods
__construct()
BadRequestException constructor.
public
__construct(array<string|int, mixed> $missingParameters) : mixed
Parameters
- $missingParameters : array<string|int, mixed>
Tags
__toString()
Returns a string representation of this Exception that includes the error code, the message and the hint.
public
__toString() : string
Tags
Return values
stringgetHint()
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
Return values
stringgetReturnMessage()
get array with the return message as defined in the OCM API
public
getReturnMessage() : array{message: string, validationErrors: array{message: string, name: string}[]}