Skip to content

tp TouchPointWP TouchPointWP_Exception

James K. edited this page Jun 25, 2024 · 2 revisions

tp\TouchPointWP\TouchPointWP_Exception

An Exception class.

  • Class name: TouchPointWP_Exception
  • Namespace: \tp\TouchPointWP
  • Parent class: Exception

Properties

_debugMode

public mixed _debugMode = null
  • Visibility: public

Methods

__construct

mixed tp\TouchPointWP\TouchPointWP_Exception::__construct(string message, int code, ?\Throwable previous)

Create an exception, and log it where it can be reported to the TouchPoint-WP Developers.

  • Visibility: public

Arguments

  • message string* code int* previous ?\Throwable

Returns

  • mixed

debugLog

void tp\TouchPointWP\TouchPointWP_Exception::debugLog(mixed code, mixed file, mixed line, mixed message)
  • Visibility: public
  • This method is static.

Arguments

  • code mixed* file mixed* line mixed* message mixed

toJson

string tp\TouchPointWP\TouchPointWP_Exception::toJson()

Get this in a JSON-compatible format

  • Visibility: public

Returns

  • string -
Clone this wiki locally