SproutCMS

This is the code documentation for the SproutCMS project

function error()

Sends a JSON message which has the success field set to zero
and the specified message in the message field.

If $message is an Exception object, the message will be extracted
and if on the test server, a stacktrace is included as well.

This method halts execution

Usage

void Json::error ( mixed $message );

Arguments

  1. $message

Return value

  • void