Typed error carrying a cgdata_error code and optional message.

Synopsis

Declared in <llvm/CGData/CodeGenData.h>

class CGDataError
    : public ErrorInfo<CGDataError>

Base Classes

Name

Description

ErrorInfo<CGDataError>

Base class for user error types. Users should declare their error types like:

Member Functions

Name

Description

CGDataError [constructor]

Construct a CGDataError from Err and optional message ErrStr.

convertToErrorCode [virtual]

Convert this error to a std::error_code.

get

Return the cgdata_error enumerator for this error.

getMessage

Return the optional detail message for this error.

log [virtual]

Write the error message to OS.

message [virtual]

Return the error message as a string.

Static Member Functions

Name

Description

classID

Return the RTTI class identifier for ThisErrT.

take

Consume a CGDataError from E and return its code and message.

Static Data Members

Name

Description

ID

RTTI identifier used by ErrorInfo::classID.

Using Declarations

Name

Description

ErrorInfo

Inherit constructors from the parent error‐info type.

Created with MrDocs