\apex\app\exceptionsDBException

Handles all database related errors including connection, SQL query, and formatting errors.

Summary

Methods
Properties
Constants
__construct()
process()
No public properties found
No constants found
report()
render()
render_cli()
render_json()
render_notpl()
$log_level
$message
$is_system
$is_generic
$sql_query
N/A
No private methods found
$error_codes
$placeholder_types
N/A

Properties

$log_level

$log_level :

Type

$message

$message :

Type

$is_system

$is_system :

Type

$is_generic

$is_generic :

Type

$sql_query

$sql_query :

Type

$error_codes

$error_codes :

Type

$placeholder_types

$placeholder_types :

Type

Methods

__construct()

__construct(string  $message,string  $sql_query = '',string  $server_message = '',string  $action = '',string  $table_name = '',string  $column_name = '',string  $var_type = 's',string  $value = '')

Construct

Parameters

string $message

The exception message.

string $sql_query

The SQL query

string $server_message

The message from the mySQL server.

string $action

The action being performed.

string $table_name

The table name

string $column_name

The column name.

string $var_type

The type of variable, for SQL formatting errors

string $value

The value being formatted.

process()

process()

Process the exception, log and display it as necessary

report()

report()

Report, and add necessary logging

render()

render()

Display the error as necessary, depending on the origin of request (CLI, web browser, AJAX, etc.)

render_cli()

render_cli()

Render CLI

render_json()

render_json()

Render JSON error

render_notpl()

render_notpl()

Render with no .tpl file found