Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::ReasonForCancelling Class Reference

#include <isolate_reload.h>

Inheritance diagram for dart::ReasonForCancelling:
dart::ZoneAllocated dart::Aborted dart::ClassReasonForCancelling dart::ConstClassFieldRemoved dart::ConstToNonConstClass dart::DeeplyImmutableChange dart::EnsureFinalizedError dart::EnumClassConflict dart::InstanceSizeConflict dart::NativeFieldsConflict dart::PreFinalizedConflict dart::TypeParametersChanged

Public Member Functions

 ReasonForCancelling (Zone *zone)
 
virtual ~ReasonForCancelling ()
 
void Report (IsolateGroupReloadContext *context)
 
virtual ErrorPtr ToError ()
 
virtual StringPtr ToString ()
 
virtual void AppendTo (JSONArray *array)
 
- Public Member Functions inherited from dart::ZoneAllocated
 ZoneAllocated ()
 
void * operator new (size_t size)
 
void * operator new (size_t size, Zone *zone)
 
void operator delete (void *pointer)
 

Detailed Description

Definition at line 108 of file isolate_reload.h.

Constructor & Destructor Documentation

◆ ReasonForCancelling()

dart::ReasonForCancelling::ReasonForCancelling ( Zone zone)
inlineexplicit

Definition at line 110 of file isolate_reload.h.

110{}

◆ ~ReasonForCancelling()

virtual dart::ReasonForCancelling::~ReasonForCancelling ( )
inlinevirtual

Definition at line 111 of file isolate_reload.h.

111{}

Member Function Documentation

◆ AppendTo()

void dart::ReasonForCancelling::AppendTo ( JSONArray array)
virtual

Reimplemented in dart::ClassReasonForCancelling, and dart::TypeParametersChanged.

Definition at line 432 of file isolate_reload.cc.

432 {
433 JSONObject jsobj(array);
434 jsobj.AddProperty("type", "ReasonForCancelling");
435 const String& message = String::Handle(ToString());
436 jsobj.AddProperty("message", message.ToCString());
437}
static Object & Handle()
Definition: object.h:407
virtual StringPtr ToString()
Win32Message message

◆ Report()

void dart::ReasonForCancelling::Report ( IsolateGroupReloadContext context)

Definition at line 416 of file isolate_reload.cc.

416 {
417 const Error& error = Error::Handle(ToError());
418 context->ReportError(error);
419}
virtual ErrorPtr ToError()
const uint8_t uint32_t uint32_t GError ** error

◆ ToError()

ErrorPtr dart::ReasonForCancelling::ToError ( )
virtual

Definition at line 421 of file isolate_reload.cc.

421 {
422 // By default create the error returned from ToString.
423 const String& message = String::Handle(ToString());
424 return LanguageError::New(message);
425}

◆ ToString()

StringPtr dart::ReasonForCancelling::ToString ( )
virtual

Reimplemented in dart::EnumClassConflict, and dart::TypeParametersChanged.

Definition at line 427 of file isolate_reload.cc.

427 {
428 UNREACHABLE();
429 return nullptr;
430}
#define UNREACHABLE()
Definition: assert.h:248

The documentation for this class was generated from the following files: