The error
type on a method response payload must be an int32
, uint32
, or enum
thereof:
{% include “docs/reference/fidl/language/error-catalog/label/_bad.md” %}
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/bad/fi-0141.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
Change the error
type to one of the valid options to fix this error:
{% include “docs/reference/fidl/language/error-catalog/label/_good.md” %}
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/good/fi-0141.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
See RFC-0060: Error handling for more details.