Examples of StandardException


Examples of org.apache.derby.iapi.error.StandardException

    {
        long   maxLength = Integer.MAX_VALUE;
        long   length = _clobValue.length();
        if ( length > Integer.MAX_VALUE )
        {
            StandardException se = StandardException.newException
                ( SQLState.BLOB_TOO_LARGE_FOR_CLIENT, Long.toString( length ), Long.toString( maxLength ) );

            throw new SQLException( se.getMessage() );
        }

        return (int) length;
    }
View Full Code Here

Examples of org.apache.derby.iapi.error.StandardException

                Throwable rootCause = ioe;
                while (rootCause.getCause() != null) {
                    rootCause = rootCause.getCause();
                }
                if (rootCause instanceof StandardException) {
                    StandardException se = (StandardException)rootCause;
                    if (se.getMessageId().equals(
                            SQLState.DATA_CONTAINER_CLOSED)) {
                        throw StandardException.newException(
                                SQLState.BLOB_ACCESSED_AFTER_COMMIT, ioe);
                    }
                }
View Full Code Here

Examples of org.apache.derby.iapi.error.StandardException

                                throw Timeout.buildException(
                                    waitingLock, timeoutLockTable, currentTime);
                            }
                            else
                            {
                                StandardException se =
                                    StandardException.newException(
                                        SQLState.LOCK_TIMEOUT);

                                throw se;
                            }
View Full Code Here

Examples of org.jostraca.util.StandardException


  public void testExceptions() {
    RecordingUserMessageHandler umh = new RecordingUserMessageHandler();
    umh.setThreshold( UserMessageHandler.INFO );
    umh.error( new StandardException( StandardException.CODE_user, "se01") );

    System.out.println( umh.toString() );

    StandardException se02s = new StandardException( StandardException.CODE_user, "se02s" );
    StandardException se02  = new StandardException( StandardException.CODE_user, "se02", se02s );
    umh.error( se02 );

    System.out.println( umh.toString() );

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.