Package org.dspace.app.bulkedit
Class MetadataImportInvalidHeadingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.dspace.app.bulkedit.MetadataImportInvalidHeadingException
-
- All Implemented Interfaces:
Serializable
public class MetadataImportInvalidHeadingException extends Exception
Metadata importer exception- Author:
- Stuart Lewis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MetadataImportInvalidHeadingException(String message, int theType, int theColumn)Instantiate a new MetadataImportInvalidHeadingException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBadHeader()Get the heading that was invalidintgetColumn()Get the column number that was invalidStringgetMessage()Get the exception messageStringgetType()Get the type of the exception-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
SCHEMA
public static final int SCHEMA
Error with the schema- See Also:
- Constant Field Values
-
ELEMENT
public static final int ELEMENT
Error with the element- See Also:
- Constant Field Values
-
MISSING
public static final int MISSING
Error with a missing header- See Also:
- Constant Field Values
-
ENTRY
public static final int ENTRY
Error with the whole entry- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MetadataImportInvalidHeadingException
public MetadataImportInvalidHeadingException(String message, int theType, int theColumn)
Instantiate a new MetadataImportInvalidHeadingException- Parameters:
message- the error messagetheType- the type of the errortheColumn- column number
-
-
Method Detail
-
getType
public String getType()
Get the type of the exception- Returns:
- the type of the exception
-
getBadHeader
public String getBadHeader()
Get the heading that was invalid- Returns:
- the invalid heading
-
getColumn
public int getColumn()
Get the column number that was invalid- Returns:
- the invalid column number
-
getMessage
public String getMessage()
Get the exception message- Overrides:
getMessagein classThrowable- Returns:
- The exception message
-
-