org.apache.hadoop.mapred
Class InvalidInputException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.mapred.InvalidInputException
- All Implemented Interfaces:
- java.io.Serializable
public class InvalidInputException
- extends java.io.IOException
This class wraps a list of problems with the input, so that the user
can get a list of problems together instead of finding and fixing them one
by one.
- See Also:
- Serialized Form
Constructor Summary |
InvalidInputException(java.util.List<java.io.IOException> probs)
Create the exception with the given list. |
Method Summary |
java.lang.String |
getMessage()
Get a summary message of the problems found. |
java.util.List<java.io.IOException> |
getProblems()
Get the complete list of the problems reported. |
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 |
InvalidInputException
public InvalidInputException(java.util.List<java.io.IOException> probs)
- Create the exception with the given list.
- Parameters:
probs
- the list of problems to report. this list is not copied.
getProblems
public java.util.List<java.io.IOException> getProblems()
- Get the complete list of the problems reported.
- Returns:
- the list of problems, which must not be modified
getMessage
public java.lang.String getMessage()
- Get a summary message of the problems found.
- Overrides:
getMessage
in class java.lang.Throwable
- Returns:
- the concatenated messages from all of the problems.
Copyright © 2009 The Apache Software Foundation