Class MZTabException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- uk.ac.ebi.pride.jmztab2.utils.errors.MZTabException
-
- All Implemented Interfaces:
Serializable
public class MZTabException extends Exception
Wrap aMZTabError
. This exception mainly used in parse the metadata section of mzTab file. Once raise exception, system will stop validate and output the error messages. NOTICE: In some special situation, the consistency constraints SHOULD be maintain in metadata section, for example: the assay[n]-sample_ref, study_variable[1-n]-assay_refs and so on. We suggest user raise this exception very carefully, because of this break the continuous validate principle. During process the value format, system will add theMZTabError
intoMZTabErrorList
, instead of raise the exception directly. And all errors will output after validate the whole mzTab file.- Since:
- 29/01/13
- Author:
- qingwei
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MZTabException(String message)
Constructor for MZTabException.MZTabException(MZTabError error)
Constructor for MZTabException.MZTabException(MZTabError error, Throwable cause)
Constructor for MZTabException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MZTabError
getError()
Getter for the fielderror
.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MZTabException
public MZTabException(String message)
Constructor for MZTabException.
- Parameters:
message
- aString
object.
-
MZTabException
public MZTabException(MZTabError error)
Constructor for MZTabException.
- Parameters:
error
- aMZTabError
object.
-
MZTabException
public MZTabException(MZTabError error, Throwable cause)
Constructor for MZTabException.
- Parameters:
error
- aMZTabError
object.cause
- aThrowable
object.
-
-
Method Detail
-
getError
public MZTabError getError()
Getter for the field
error
.- Returns:
- a
MZTabError
object.
-
-