@Optional("0") int code)
{
value.putField(env, "message", message);
value.putField(env, "code", LongValue.create(code));
Location location = env.getLocation();
if (location != null) {
if (location.getFileName() != null)
value.putField(env, "file", env.createString(location.getFileName()));
else
value.putField(env, "file", env.createString("unknown"));
value.putField(env, "line", LongValue.create(location.getLineNumber()));
}
value.putField(env, "trace", ErrorModule.debug_backtrace(env));
QuercusException e = new QuercusException();
e.fillInStackTrace();