org.dspace.app.bulkedit
Class MetadataImportInvalidHeadingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.dspace.app.bulkedit.MetadataImportInvalidHeadingException
All Implemented Interfaces:
Serializable

public class MetadataImportInvalidHeadingException
extends Exception

Metadata importer exception

Author:
Stuart Lewis
See Also:
Serialized Form

Field Summary
static int ELEMENT
          Error with the element
static int ENTRY
          Error with the whole entry
static int MISSING
          Error with a missing header
static int SCHEMA
          Error with the schema
 
Constructor Summary
MetadataImportInvalidHeadingException(String message, int theType, int theColumn)
          Instantiate a new MetadataImportInvalidHeadingException
 
Method Summary
 String getBadHeader()
          Get the heading that was invalid
 int getColumn()
          Get the column number that was invalid
 String getMessage()
          Get the exception message
 String getType()
          Get the type of the exception
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 message
theType - the type of the error
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:
getMessage in class Throwable
Returns:
The exception message


Copyright © 2012 DuraSpace. All Rights Reserved.