template <typename DomainError>

class ErrorsInImpl

Defined at line 68 of file ../../sdk/lib/fidl/cpp/include/lib/fidl/cpp/any_error_in.h

|ErrorsInImpl| is used to implement |ErrorsIn|.

|DomainError| must be a domain object generated by the FIDL toolchain.

|DomainError| must be int32, uint32, or an enum of one of those types.

Public Methods

void ErrorsInImpl<DomainError> (fidl::Error framework_error)

Defined at line 70 of file ../../sdk/lib/fidl/cpp/include/lib/fidl/cpp/any_error_in.h

void ErrorsInImpl<DomainError> (DomainError domain_error)

Defined at line 71 of file ../../sdk/lib/fidl/cpp/include/lib/fidl/cpp/any_error_in.h

bool is_framework_error ()

Check if the error is a framework error: an error from the FIDL framework.

Defined at line 74 of file ../../sdk/lib/fidl/cpp/include/lib/fidl/cpp/any_error_in.h

const fidl::Error & framework_error ()

Accesses the framework error: an error from the FIDL framework.

Defined at line 77 of file ../../sdk/lib/fidl/cpp/include/lib/fidl/cpp/any_error_in.h

fidl::Error & framework_error ()

Accesses the framework error: an error from the FIDL framework.

Defined at line 80 of file ../../sdk/lib/fidl/cpp/include/lib/fidl/cpp/any_error_in.h

bool is_domain_error ()

Check if the error is a domain error: an error defined in the method from the FIDL schema.

Defined at line 83 of file ../../sdk/lib/fidl/cpp/include/lib/fidl/cpp/any_error_in.h

const DomainError & domain_error ()

Accesses the domain error: an error defined in the method from the FIDL schema.

Defined at line 86 of file ../../sdk/lib/fidl/cpp/include/lib/fidl/cpp/any_error_in.h

DomainError & domain_error ()

Accesses the domain error: an error defined in the method from the FIDL schema.

Defined at line 89 of file ../../sdk/lib/fidl/cpp/include/lib/fidl/cpp/any_error_in.h

std::string FormatDescription ()

Prints a description of the error.

If a logging API supports output streams (`

<

<

` operators), piping the

error to the log via `

<

<

` is more efficient than calling this function.

Defined at line 95 of file ../../sdk/lib/fidl/cpp/include/lib/fidl/cpp/any_error_in.h

Friends

template <typename DomainError>
std::ostream & ErrorsInImpl (std::ostream & ostreamconst ErrorsInImpl<DomainError> & any_error)