Class TaskStatusValueObject.TaskError
java.lang.Object
ubic.gemma.rest.TaskStatusValueObject.TaskError
- Enclosing class:
TaskStatusValueObject
Machine-readable classification of a failed task, so a REST client can react to the failure (link to the
existing experiment, correct the accession, retry a transient network error, or surface the raw detail) rather
than parsing a free-text message. Present only when
TaskStatusValueObject.getStatus() is failed.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Stable, machine-readable code.Simple class name of the underlying exception, for diagnostics.ForALREADY_EXISTS, the id of the experiment that already holds the accession, when resolvable.Human-readable description of the failure.voidStable, machine-readable code.voidsetExceptionType(String exceptionType) Simple class name of the underlying exception, for diagnostics.voidsetExistingExperimentId(Long existingExperimentId) ForALREADY_EXISTS, the id of the experiment that already holds the accession, when resolvable.voidsetMessage(String message) Human-readable description of the failure.
-
Constructor Details
-
TaskError
public TaskError()
-
-
Method Details
-
getCode
Stable, machine-readable code. Known values:ALREADY_EXISTS— the accession is already loaded (seeexistingExperimentId).INVALID_ACCESSION— GEO/ArrayExpress rejected the accession as unknown or malformed.NETWORK_ERROR— a fetch from the remote source (e.g. NCBI GEO FTP) failed; usually transient.BLACKLISTED— the accession is on Gemma's blacklist and will not be imported.SUPERSERIES_NOT_ALLOWED/SUBSERIES_NOT_ALLOWED— a super/sub-series gate blocked the load; retry with the corresponding allow-flag if the load is intended.UNSUPPORTED_TAXON— no supported taxon remained after filtering the samples.TASK_FAILED— anything else; consultmessageand the server logs.
-
getMessage
Human-readable description of the failure. -
getExceptionType
Simple class name of the underlying exception, for diagnostics. -
getExistingExperimentId
ForALREADY_EXISTS, the id of the experiment that already holds the accession, when resolvable. -
setCode
Stable, machine-readable code. Known values:ALREADY_EXISTS— the accession is already loaded (seeexistingExperimentId).INVALID_ACCESSION— GEO/ArrayExpress rejected the accession as unknown or malformed.NETWORK_ERROR— a fetch from the remote source (e.g. NCBI GEO FTP) failed; usually transient.BLACKLISTED— the accession is on Gemma's blacklist and will not be imported.SUPERSERIES_NOT_ALLOWED/SUBSERIES_NOT_ALLOWED— a super/sub-series gate blocked the load; retry with the corresponding allow-flag if the load is intended.UNSUPPORTED_TAXON— no supported taxon remained after filtering the samples.TASK_FAILED— anything else; consultmessageand the server logs.
-
setMessage
Human-readable description of the failure. -
setExceptionType
Simple class name of the underlying exception, for diagnostics. -
setExistingExperimentId
ForALREADY_EXISTS, the id of the experiment that already holds the accession, when resolvable.
-