HTML – HTTP Status Messages
When a browser requests a service from a web server, the server returns a code along with the document/asset, like “404 Not Found” or “200 OK”.
When a browser requests a service from a web server, the server returns a code along with the document/asset, like “404 Not Found” or “200 OK”.
The debugger statement stops the execution of a script and calls the debugger. If debugging is unavailable, the statement has no effect.
The throw statement allows you to generate a custom error (throw an exception), which can be a String, a Number, a Boolean, or an Object.
The try…catch…finally statement handles errors without stopping JavaScript to output the error.
The console.error() method writes an error message to the console, which can be useful for testing purposes.
The Error object provides error information when an error occurs. The message property sets or returns an error message.
The Error object provides error information when an error occurs. The name property sets or returns the name of an error.
This is a quick reference list of JavaScript error properties with examples of how they are used.
The ajaxError() method specifies a function to be run when an AJAX request fails, and should only be attached to the document.
The PHP connection_aborted() function checks whether the client has disconnected.
The PHP debug_backtrace() function generates a PHP backtrace which displays data from the code that led up to the debug_backtrace() function.
The PHP debug_print_backtrace() function prints a PHP backtrace which displays data from the code that led up to the debug_print_backtrace() function.
The PHP error_get_last() function returns the last error that occurred (as an associative array).
The PHP error_log() function sends an error message to a log, to a file, or to a mail account.
The PHP error_reporting() function specifies which errors are reported.
The PHP Exception() constructor is used to create an Exception object and set some of its properties.
The PHP getCode() method returns an integer which can be used to identify the exception.
The PHP getFile() method returns the absolute path to the file where an exception occurred.
The PHP getLine() method returns the line number of the line of code which threw the exception.
The PHP getMessage() method returns a description of the error or behaviour that caused the exception to be thrown.