Example #1
0
function tbxFunctionMissing()
{
    if (Request::PostMaxSizeExceeded()) {
        JSON::Failure('The size of the data submitted surpasses the amount that PHP allows (' . ini_get('post_max_size') . ')');
    } else {
        throw new BaseException('Function argument was missing from the request');
    }
}