|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.marc4j.MarcReaderException
A MarcReaderException thrown when an error occurs
while parsing MARC records.
| Constructor Summary | |
MarcReaderException(String message,
int pos)
Creates an Exception indicating that an error
occured while parsing MARC records. |
|
MarcReaderException(String message,
int pos,
String controlNumber)
Creates an Exception indicating that an error
occured while parsing MARC records. |
|
MarcReaderException(String message,
String fileName,
int pos,
String controlNumber)
Creates an Exception indicating that an error
occured while parsing MARC records. |
|
MarcReaderException(String message,
Throwable ex)
Creates a new MarcReaderException with the
specified message and an underlying root cause. |
|
| Method Summary | |
String |
getControlNumber()
Returns the control number (tag 001). |
String |
getFileName()
Returns the file name or null if there is no input file. |
int |
getPosition()
Returns the position in the character stream where the exception is thrown. |
Throwable |
initCause(Throwable cause)
Sets the root cause of this exception. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MarcReaderException(String message,
int pos)
Creates an Exception indicating that an error
occured while parsing MARC records.
message - the reason why the exception is thrownpos - position in the character stream where the exception is thrown
public MarcReaderException(String message,
Throwable ex)
Creates a new MarcReaderException with the
specified message and an underlying root cause.
message - information about the cause of the exceptionex - the nested exception that caused this exception
public MarcReaderException(String message,
int pos,
String controlNumber)
Creates an Exception indicating that an error
occured while parsing MARC records.
message - the reason why the exception is thrownpos - position in the character stream where the exception is throwncontrolNumber - the control number (tag 001)
public MarcReaderException(String message,
String fileName,
int pos,
String controlNumber)
Creates an Exception indicating that an error
occured while parsing MARC records.
fileName - the name of the input filemessage - the reason why the exception is thrownpos - position in the character stream where the exception is throwncontrolNumber - the control number (tag 001)| Method Detail |
public Throwable initCause(Throwable cause)
Sets the root cause of this exception. This may
only be called once. Subsequent calls throw an
IllegalStateException.
cause - the root cause of this exception
IllegalStateException - if this method is called twice.public String getFileName()
Returns the file name or null if there is no input file.
String - the file namepublic int getPosition()
Returns the position in the character stream where the exception is thrown.
int - the positionpublic String getControlNumber()
Returns the control number (tag 001).
String - the control number
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||