Code example for NotActiveException

0
    } 
 
    public synchronized void registerValidation(ObjectInputValidation obj,
            int prio) throws NotActiveException, InvalidObjectException {
        if (recursionDepth == 0) {
            throw new NotActiveException("readObject not Active");
        } 
 
        if (obj == null) {
            throw new InvalidObjectException(
                    "Null is not a valid callback object"); 
        } 
 
        Validation val = new Validation(obj, prio);
 
        if (callbacks == null) {
            callbacks = new PriorityQueue();
        } 
 
        callbacks.enqueue(val);
Connect your IDE to all the code out there  Get Codota for Java