Exception CodedOutputStream.OutOfSpaceException (3.19.4)

public static class CodedOutputStream.OutOfSpaceException extends IOException

If you create a CodedOutputStream around a simple flat array, you must not attempt to write more bytes than the array has space. Otherwise, this exception will be thrown.