def METHOD_NAME(exception: Optional[Exception] = None) -> "FaultState":
    if exception is None:
        return FaultState.no_error()
    if isinstance(exception, FaultState):
        return exception
    return exceptions.get_default_exception_registry().translate_exception(exception)