[jQuery] Catching ajax request errors

[jQuery] Catching ajax request errors


Is this possible? I do not want to use the $.ajaxError event but
catching the error directly like this:
try
{
$.getJSON(.....);
}
catch (x)
{
alert("failed");
}