Skip to content

Latest commit

 

History

History
106 lines (38 loc) · 1.42 KB

JSMF-Exception-UserVisible.md

File metadata and controls

106 lines (38 loc) · 1.42 KB

JSMF\Exception\UserVisible

  • Class name: UserVisible
  • Namespace: JSMF\Exception
  • Parent class: JSMF\Exception

Constants

USER_EXCEPTION

const USER_EXCEPTION = 1337

Methods

__construct

\Exception JSMF\Exception::__construct(String|null $message, Int $code, \JSMF\Exception|null $previous, Array $additionalData)

constructs exception

Arguments

  • $message String|null
  • $code Int
  • $previous JSMF\Exception|null
  • $additionalData Array - <p>(append additional data to the exceptoni (makes sense on json response))</p>

getHeadline

mixed JSMF\Exception\UserVisible::getHeadline()
  • Visibility: public

__toString

mixed JSMF\Exception::__toString()

getAdditionalData

Array JSMF\Exception::getAdditionalData()

returns additional exception data if set

isBad

Boolean JSMF\Exception::isBad()

returns if this is a "bad" exception where the developers should be informed about