Skip to content
Andrea Zoellner edited this page Jul 30, 2015 · 2 revisions

Crew\Unsplash\Exception

  • Class name: Exception
  • Namespace: Crew\Unsplash
  • Parent class: Exception

Methods

__construct

mixed Crew\Unsplash\Exception::__construct(array $message, integer $code, \Crew\Unsplash\Exception|null $previous)

Override the constructor to accept an array instead of a string.

We then transform the array into a string.

  • Visibility: public

Arguments

  • $message array - <p>Array containing the errors</p>
  • $code integer - <p>Error code</p>
  • $previous Crew\Unsplash\Exception|null - <p>Previous Exception object</p>

getArray

array Crew\Unsplash\Exception::getArray()

Retrieve the array of errors.

  • Visibility: public

Api Index

Clone this wiki locally