You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.server.frontend.

Interface FallibleCommand

All Known Subinterfaces:

TaskGenerateEndpoint, TaskGenerateOpenAPI

All Known Implementing Classes:

AbstractTaskClientGenerator, NodeTasks, NodeUpdater, TaskCleanFrontendFiles, TaskCopyFrontendFiles, TaskCopyLocalFrontendFiles, TaskCopyTemplateFiles, TaskGenerateBootstrap, TaskGenerateFeatureFlags, TaskGenerateIndexHtml, TaskGenerateIndexTs, TaskGeneratePackageJson, TaskGenerateReactFiles, TaskGenerateServiceWorker, TaskGenerateTsConfig, TaskGenerateTsDefinitions, TaskGenerateViteDevMode, TaskGenerateWebComponentBootstrap, TaskGenerateWebComponentHtml, TaskInstallFrontendBuildPlugins, TaskPrepareProdBundle, TaskRunDevBundleBuild, TaskRunNpmInstall, TaskUpdateImports, TaskUpdateOldIndexTs, TaskUpdatePackages, TaskUpdateSettingsFile, TaskUpdateThemeImport, TaskUpdateVite

public interface FallibleCommand

A generic command which may fail.

Note that this interface is not serializable and should not be used in a web application.

For internal use only. May be renamed or removed in a future release.

Since:

Author:

Vaadin Ltd

  • Method Summary

    Modifier and Type
    Method
    Description
    void

    Runs the given command.

  • Method Details

    • execute

      void execute() throws ExecutionFailedException

      Runs the given command.

      If execution fails then the command may throw an exception which may give a message and a cause of the failure.

      Throws:

      ExecutionFailedException - if there is an execution error