On 02/06/2013 02:50 PM, James Taylor wrote:
>
> In 
> src/main/java/com/salesforce/phoenix/exception/SQLExceptionCodeEnum.java:
>
> > + * @author zhuang
> > + * @since 1.0
> > + */
> > +public enum SQLExceptionCodeEnum {
> > +
> > +    /**
> > +     * Warnings (01)
> > +     */
> > +    CURSOR_OPERATION_CONFLICT("01001", "Cursor operation conflict."),
> > +    DISCONNECT_ERROR("01002", "Disconnect error."),
> > +    DATA_TRUNCATED("01004", "Data truncated."),
> > +
> > +    /**
> > +     * Connection Exception (08)
> > +     */
> > +    IO_EXCEPTION("08000", "Connection closed by unknown interrupt."),
>
> Is this a standard SQL error message? Might be better to say 
> "Unexpected IO exception", since this is going to map to many cases. 
> What do you think?
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/forcedotcom/phoenix/pull/35/files#r2918897>.
>
I actually get that one from the DerbyDB reference, from here:

http://db.apache.org/derby/docs/10.9/ref/rrefexcept71493.html

We can definitely tweak the message to become more formal.