public class BufferSizeError extends Error
Error
:
One2OneChannel c = Channel.one2one (new Buffer (-42)); // must be >= 0 One2OneChannel c = Channel.one2one (new OverFlowingBuffer (-42)); // must be > 0 One2OneChannel c = Channel.one2one (new OverWriteOldestBuffer (-42)); // must be > 0 One2OneChannel c = Channel.one2one (new OverWritingBuffer (-42)); // must be > 0 One2OneChannel c = Channel.one2one (new InfiniteBuffer (-42)); // must be > 0Zero-buffered non-overwriting channels are, of course, the default channel semantics. The following constructions are all legal and equivalent:
One2OneChannel c = Channel.one2one (); One2OneChannel c = Channel.one2one (new ZeroBuffer ()); // less efficient One2OneChannel c = Channel.one2one (new Buffer (0)); // less efficientNo action should be taken to catch BufferSizeError. Application code generating it is in error and needs correcting.
Constructor and Description |
---|
BufferSizeError(String s) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BufferSizeError(String s)
Submit a bug or feature to jcsp-team@kent.ac.uk
Version 1.1-rc4 of the JCSP API Specification (Copyright 1997-2008 P.D.Austin and P.H.Welch - All Rights Reserved)
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.