Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | List of all members
dart::bin::OSError Class Reference

#include <utils.h>

Public Types

enum  SubSystem { kSystem , kGetAddressInfo , kBoringSSL , kUnknown = -1 }
 

Public Member Functions

 OSError ()
 
 OSError (int code, const char *message, SubSystem sub_system)
 
virtual ~OSError ()
 
void Reload ()
 
SubSystem sub_system ()
 
int code ()
 
char * message ()
 
void SetCodeAndMessage (SubSystem sub_system, int code)
 

Detailed Description

Definition at line 18 of file utils.h.

Member Enumeration Documentation

◆ SubSystem

Enumerator
kSystem 
kGetAddressInfo 
kBoringSSL 
kUnknown 

Definition at line 20 of file utils.h.

Constructor & Destructor Documentation

◆ OSError() [1/2]

dart::bin::OSError::OSError ( )

◆ OSError() [2/2]

dart::bin::OSError::OSError ( int  code,
const char *  message,
SubSystem  sub_system 
)
inline

Definition at line 23 of file utils.h.

23 {
24 sub_system_ = sub_system;
25 code_ = code;
26 message_ = nullptr; // SetMessage will free existing message.
27 SetMessage(message);
28 }
SubSystem sub_system()
Definition: utils.h:34
char * message()
Definition: utils.h:36

◆ ~OSError()

virtual dart::bin::OSError::~OSError ( )
inlinevirtual

Definition at line 29 of file utils.h.

29{ free(message_); }

Member Function Documentation

◆ code()

int dart::bin::OSError::code ( )
inline

Definition at line 35 of file utils.h.

35{ return code_; }

◆ message()

char * dart::bin::OSError::message ( )
inline

Definition at line 36 of file utils.h.

36{ return message_; }

◆ Reload()

void dart::bin::OSError::Reload ( )

◆ SetCodeAndMessage()

void dart::bin::OSError::SetCodeAndMessage ( SubSystem  sub_system,
int  code 
)

◆ sub_system()

SubSystem dart::bin::OSError::sub_system ( )
inline

Definition at line 34 of file utils.h.

34{ return sub_system_; }

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