Example usage for java.io NotSerializableException NotSerializableException

List of usage examples for java.io NotSerializableException NotSerializableException

Introduction

In this page you can find the example usage for java.io NotSerializableException NotSerializableException.

Prototype

public NotSerializableException() 

Source Link

Document

Constructs a NotSerializableException object.

Usage

From source file:com.ibm.jaggr.core.impl.AbstractAggregatorImpl.java

private void writeObject(ObjectOutputStream out) throws IOException {
    throw new NotSerializableException();
}

From source file:com.ibm.jaggr.core.impl.AbstractAggregatorImpl.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    throw new NotSerializableException();
}

From source file:it.unimi.dsi.webgraph.algo.HyperBall.java

/** Throws a {@link NotSerializableException}, as this class implements {@link Serializable}
 * because it extends {@link HyperLogLogCounterArray}, but it's not really. */
private void writeObject(@SuppressWarnings("unused") final ObjectOutputStream oos) throws IOException {
    throw new NotSerializableException();
}