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
Metadata importer exception
- Author:
- Stuart Lewis
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMetadataImportInvalidHeadingException(String message, int theType, int theColumn) Instantiate a new MetadataImportInvalidHeadingException -
Method Summary
Modifier and TypeMethodDescriptionGet the heading that was invalidintGet the column number that was invalidGet the exception messagegetType()Get the type of the exceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
SCHEMA
public static final int SCHEMAError with the schema- See Also:
-
ELEMENT
public static final int ELEMENTError with the element- See Also:
-
MISSING
public static final int MISSINGError with a missing header- See Also:
-
ENTRY
public static final int ENTRYError with the whole entry- See Also:
-
-
Constructor Details
-
MetadataImportInvalidHeadingException
Instantiate a new MetadataImportInvalidHeadingException- Parameters:
message- the error messagetheType- the type of the errortheColumn- column number
-
-
Method Details
-
getType
Get the type of the exception- Returns:
- the type of the exception
-
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
Get the exception message- Overrides:
getMessagein classThrowable- Returns:
- The exception message
-