Package edu.ucsb.nceas.metacat
Class McdbDocNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
edu.ucsb.nceas.metacat.McdbException
edu.ucsb.nceas.metacat.McdbDocNotFoundException
- All Implemented Interfaces:
Serializable
Exception thrown when an error occurs because a document with a
given ID could not be found in the metacat database.
- See Also:
-
Constructor Summary
ConstructorDescriptionCreate a new McdbDocNotFoundException.Create a new McdbDocNotFoundException.McdbDocNotFoundException
(String message) Create a new exception but only set the message.McdbDocNotFoundException
(String message, Exception e) Create a new McdbDocNotFoundException.McdbDocNotFoundException
(String message, String givenDocId, String givenRevision) Create a new McdbDocNotFoundException. -
Method Summary
Modifier and TypeMethodDescriptionMethod to get the docid which couldn't be foundMethod to get the docid's revsion which couldn't be foundMethods inherited from class edu.ucsb.nceas.metacat.McdbException
getException, getMessage, toXml
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
McdbDocNotFoundException
public McdbDocNotFoundException()Create a new McdbDocNotFoundException. -
McdbDocNotFoundException
Create a new McdbDocNotFoundException.- Parameters:
message
- The error or warning message.
-
McdbDocNotFoundException
Create a new exception but only set the message.- Parameters:
message
- a message giving information about why the document was not found
-
McdbDocNotFoundException
Create a new McdbDocNotFoundException.- Parameters:
e
- The exception to tunnel inside this exception
-
McdbDocNotFoundException
Create a new McdbDocNotFoundException.- Parameters:
message
- The error or warning message.e
- The exception to tunnel inside this exception
-
-
Method Details
-
getUnfoundDocId
Method to get the docid which couldn't be found -
getUnfoundRevision
Method to get the docid's revsion which couldn't be found
-