Home | History | Annotate | Download | only in src

Lines Matching defs:exception

426     // Capture stack trace for a detailed exception message.
787 Handle<JSObject> exception = factory()->CopyJSObject(boilerplate);
788 DoThrow(*exception, NULL);
790 CaptureAndSetSimpleStackTrace(exception, factory()->undefined_value());
791 return heap()->exception();
797 return heap()->exception();
838 Object* Isolate::Throw(Object* exception, MessageLocation* location) {
839 DoThrow(exception, location);
840 return heap()->exception();
844 Object* Isolate::ReThrow(Object* exception) {
846 bool catchable_by_javascript = is_catchable_by_javascript(exception);
852 // Set the exception being re-thrown.
853 set_pending_exception(exception);
854 return heap()->exception();
864 void Isolate::ScheduleThrow(Object* exception) {
865 // When scheduling a throw we first throw the exception to get the
867 Throw(exception);
905 // Re-throw the exception to avoid getting repeated error reporting.
970 // The exception has been externally caught if and only if there is
978 // Only report the exception if the external handler is verbose.
981 // Report the exception if it isn't caught by JavaScript code.
1009 void Isolate::DoThrow(Object* exception, MessageLocation* location) {
1013 Handle<Object> exception_handle(exception, this);
1015 // Determine reporting and whether the exception is caught externally.
1016 bool catchable_by_javascript = is_catchable_by_javascript(exception);
1028 // Notify debugger of exception.
1050 // Look up as own property. If the lookup fails, the exception is
1070 // If the exception argument is a custom object, turn it into a string
1071 // before throwing as uncaught exception. Note that the pending
1072 // exception object to be set later must not be turned into a string.
1078 STATIC_CHAR_VECTOR("exception"));
1094 // If the abort-on-uncaught-exception flag is specified, abort on any
1095 // exception not caught by JavaScript, even when an external handler is
1116 if (exception->IsString() && location->script()->name()->IsString()) {
1119 String::cast(exception)->ToCString().get(),
1151 // Save the message for reporting if the the exception remains uncaught.
1154 // Do not forget to clean catcher_ if currently thrown exception cannot
1178 // The exception has been externally caught if and only if there is
1184 // Note, that finally clause would rethrow an exception unless it's
1206 // Do nothing: if needed, the exception has been already propagated to
1257 // Do not reschedule the exception if this is the bottom call.
1267 // If the exception is externally caught, clear it if there are no
1279 // Clear the exception if needed.
1286 // Reschedule the exception.
2333 Handle<Object> exception;