Package jnipap

Examples of jnipap.JnipapException


    try {
      oconn = DriverManager.getConnection("jdbc:default:connection:");
      desc = ArrayDescriptor.createDescriptor(type_name, oconn);
      ret = new ARRAY(desc, oconn, data);
    } catch(SQLException e) {
      throw new JnipapException(e.toString());
    }

    return ret;

  }
View Full Code Here


    } else {

      // one of our own NIPAP-errors?
      switch (e.code) {
        case 1000:
          return new JnipapException(e.getMessage());
        case 1100:
          return new InputException(e.getMessage());
        case 1110:
          return new MissingInputException(e.getMessage());
        case 1120:
          return new InvalidParameterException(e.getMessage());
        case 1130:
          return new InvalidParameterException(e.getMessage());
        case 1200:
          return new InvalidParameterException(e.getMessage());
        case 1300:
          return new NonExistentException(e.getMessage());
        case 1400:
          return new DuplicateException(e.getMessage());
        default:
          return new JnipapException(e);
      }

    }

  }
View Full Code Here

TOP

Related Classes of jnipap.JnipapException

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.