make static method
SDKException
make({
- required ErrorCode code,
- required String message,
- ErrorCategory category = pb_enum.ErrorCategory.ERROR_CATEGORY_COMPONENT,
- Object? underlyingError,
Generic factory (mirrors Swift SDKException.make).
category defaults to COMPONENT to match Swift's default. Useful when the
specific factories above don't cover the desired (code, category) pair.
Implementation
static SDKException make({
required pb_enum.ErrorCode code,
required String message,
pb_enum.ErrorCategory category =
pb_enum.ErrorCategory.ERROR_CATEGORY_COMPONENT,
Object? underlyingError,
}) => _build(
code: code,
category: category,
message: message,
underlyingError: underlyingError,
);