Class SkipException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.googlecode.objectify.impl.translate.SkipException
- All Implemented Interfaces:
Serializable
public class SkipException extends RuntimeException
Thrown by any Translator that wants its value to be skipped. Unlike most exceptions, this one is not initialized with a stacktrace. This eliminates almost all of the cost of using an exception mechanism for a common operation.
For example, if you're translating a value during save() and you don't want to store a null,
you can throw new SkipException();
and this particular value will be skipped.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SkipException
public SkipException()
-
-
Method Details
-
fillInStackTrace
No need for a stacktrace- Overrides:
fillInStackTrace
in classThrowable
-