Package net.helipilot50.stocktrade.framework

Examples of net.helipilot50.stocktrade.framework.UsageException


        if (resultSet instanceof CachedRowSet) {
          CachedRowSet cachedRowSet = (CachedRowSet) resultSet;
          try {
            cachedRowSet.updateBoolean(pColOrdinal, pValue);
          } catch (SQLException e) {
            UsageException errorVar = new UsageException(e.getMessage(), net.helipilot50.stocktrade.framework.Constants.SP_ER_USER, net.helipilot50.stocktrade.framework.Constants.SP_ER_PARAMETERERROR, e);
            ErrorMgr.addError(errorVar);
            throw errorVar;
          }
        }
      }
View Full Code Here


        if (resultSet instanceof CachedRowSet) {
          CachedRowSet cachedRowSet = (CachedRowSet) resultSet;
          try {
            cachedRowSet.updateShort(pColOrdinal, pValue);
          } catch (SQLException e) {
            UsageException errorVar = new UsageException(e.getMessage(), net.helipilot50.stocktrade.framework.Constants.SP_ER_USER, net.helipilot50.stocktrade.framework.Constants.SP_ER_PARAMETERERROR, e);
            ErrorMgr.addError(errorVar);
            throw errorVar;
          }
        }
      }
View Full Code Here

        if (resultSet instanceof CachedRowSet) {
          CachedRowSet cachedRowSet = (CachedRowSet) resultSet;
          try {
            cachedRowSet.updateString(pColOrdinal, pValue);
          } catch (SQLException e) {
            UsageException errorVar = new UsageException(e.getMessage(), net.helipilot50.stocktrade.framework.Constants.SP_ER_USER, net.helipilot50.stocktrade.framework.Constants.SP_ER_PARAMETERERROR, e);
            ErrorMgr.addError(errorVar);
            throw errorVar;
          }
        }
      }
View Full Code Here

     * and is a hint to the underlying JDBC driver only.
     * @param pRows The maximum number of rows for this dataset
     */
    public void setMaxRows(int pRows) {
      if (pRows < 0) {
        UsageException err = new UsageException("pRows must be > 0 in call to DBDataSet.setMaxRows");
        ErrorMgr.addError(err);
        throw err;
      }
      this.maxRows = pRows;
      if (this.statement != null) {
View Full Code Here

        //PM:19/2/08 setting the name uses the naming strategy
        try {
            ObjectName objectName  = SystemAgent.getStrategy().getObjectName(this, pValue.toString());
            this.setObjectName(objectName);
        } catch (MalformedObjectNameException e) {
            UsageException errorVar = new UsageException("Cannot set SystemAgent name to: " + pValue, e);
            ErrorMgr.addError(errorVar);
            throw errorVar;
        } catch (NullPointerException e) {
            UsageException errorVar = new UsageException("Cannot set SystemAgent name to: " + pValue, e);
            ErrorMgr.addError(errorVar);
            throw errorVar;
        }

        this.agentInfo.setAgentName(pValue.toString());
View Full Code Here

        try {
            ObjectName objectName  = SystemAgent.getStrategy().getObjectName(this, System.getProperty(PropertiesMgr.cENVIRONMENT_NAME));
            this.setObjectName(objectName);

        } catch (MalformedObjectNameException e) {
            UsageException errorVar = new UsageException("Cannot create EnvironmentAgent", e);
            ErrorMgr.addError(errorVar);
            throw errorVar;
        } catch (NullPointerException e) {
            UsageException errorVar = new UsageException("Cannot create EnvironmentAgent", e);
            ErrorMgr.addError(errorVar);
            throw errorVar;
        }

        this.setNameAsString(System.getProperty("EnvName"));
View Full Code Here

                comp.getParent().setPreferredSize(null);
            }
            invalidateLayout(comp.getParent());
        }
        else {
            UsageException errorVar = new UsageException("constraints must be an instance of grid bag constraints or grid cell");
            ErrorMgr.addError(errorVar);
            throw errorVar;
        }
    }
View Full Code Here

     * will be thrown.
     * @param pForce whether non-empty columns should be deleted or not.
     */
    public void deleteColumn(GridField pField, int pPosition, boolean pForce) {
        if (pPosition < 0 || pPosition >= columns) {
            UsageException errorVar = new UsageException("pPosition must be in the range (0->" + (columns-1));
            ErrorMgr.addError(errorVar);
            throw errorVar;
        }
        int count = pField.getComponentCount();
        // Disable the collapse-on-delete feature temporarily, otherwise the logic becomes more
View Full Code Here

     * will be thrown.
     * @param pForce whether non-empty rows should be deleted or not.
     */
    public void deleteRow(GridField pField, int pPosition, boolean pForce) {
        if (pPosition < 0 || pPosition >= rows) {
            UsageException errorVar = new UsageException("pPosition must be in the range (0->" + (rows-1));
            ErrorMgr.addError(errorVar);
            throw errorVar;
        }
        int count = pField.getComponentCount();
        // Disable the collapse-on-delete feature temporarily, otherwise the logic becomes more
View Full Code Here

        case Constants.CA_LEFT:
        case Constants.CA_RIGHT:
            this.colAlignment = pAlignment;
            break;
        default:
            UsageException errorVar = new UsageException("Column alignment passed invalid value of " + pAlignment);
            ErrorMgr.addError(errorVar);
            throw errorVar;
        }
    }
View Full Code Here

TOP

Related Classes of net.helipilot50.stocktrade.framework.UsageException

Copyright © 2018 www.massapicom. 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.