Package nz.org.riskscape.engine.pipeline
Interface PipelineProblems
- All Superinterfaces:
ProblemFactory
Factory for producing problems that involve pipelines or pipeline steps.
See also ArgsProblems for dealing with step argument problems.
-
Method Summary
Modifier and TypeMethodDescriptioncannotRealize(Class<?> thing) cannotRealize(StepDefinition step) Assigned to the result ofas the parent problem.chainingFromStepWithNoOutput(String step, List<String> dependents) Attempt to chain the target step from the source step which produces no output.cycleDetected(String offendingLink, SourceLocation linkLocation, String offendingDeclaration, SourceLocation firstOccurence) There was a cycle in your pipelineProblem associated with anExecutionExceptionfailedDependencies(String dependentStepName) Step could not be realized because of failed dependenciesstatic PipelineProblemsget()namedInputUnknown(Step step, String inputName, List<String> supportedInputs) Attempt to chain to a named input that doesn't exist on the target step.outOfStorage(String storageLocation, long amountFree) Attached to an OutOfStorageExceptionstepRedefinition(String stepName, SourceLocation originalLocation, SourceLocation redefinedAt) The pipeline contains two steps with the same name.
-
Method Details
-
get
-
cannotRealize
Assigned to the result of
as the parent problem. Produces message: "Could not realize" -
cannotRealize
-
failedDependencies
Step could not be realized because of failed dependencies
-
namedInputUnknown
Attempt to chain to a named input that doesn't exist on the target step. Produces message:
has no input named ' '. Known input names are -
executionFailed
Problem executionFailed()Problem associated with an
ExecutionException -
outOfStorage
Attached to an OutOfStorageException
-
cycleDetected
Problem cycleDetected(String offendingLink, SourceLocation linkLocation, String offendingDeclaration, SourceLocation firstOccurence) There was a cycle in your pipeline
- Parameters:
offendingLink- the link in the pipeline that when added caused the cycle, e.g. foo() -> bar()linkLocation- the line the link was added on, uses the location of the->tokenoffendingDeclaration- The->and step declaration on the rhs of the link which if removed will remove the cyclefirstOccurence- the place where we first saw the offendingDeclaration
-
stepRedefinition
Problem stepRedefinition(String stepName, SourceLocation originalLocation, SourceLocation redefinedAt) The pipeline contains two steps with the same name.
- Parameters:
stepName- the name that is being reusedoriginalLocation- the line number that stepName was first definedredefinedAt- the line number that is attempting to redefine stepName
-
chainingFromStepWithNoOutput
Attempt to chain the target step from the source step which produces no output.
-