Examples of initCause()


Examples of com.day.ldap.LDAPException.initCause()

            }
            sock.startHandshake();
        } catch (Exception e) {
            LDAPException ex = new LDAPException("SSL connection to " + host +
                    ":" + port, LDAPException.CONNECT_ERROR);
            ex.initCause(e);
            throw ex;
        }
 
        return sock;
    }
View Full Code Here

Examples of com.facebook.presto.hive.shaded.org.apache.thrift.TException.initCause()

          throw (ConfigValSecurityException) e;
        } else if (e instanceof TException) {
          throw (TException) e;
        } else {
          TException te = new TException(e.toString());
          te.initCause(e);
          throw te;
        }
      } finally {
        endFunction("get_config_value", success, ex);
      }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jackson.databind.JsonMappingException.initCause()

            if (cause != null) {
                msg += "problem: "+cause.getMessage();
            }
            JsonMappingException e = ctxt.weirdStringException(text, _valueClass, msg);
            if (cause != null) {
                e.initCause(cause);
            }
            throw e;
            // nothing to do here, yet? We'll fail anyway
        }
        if (jp.getCurrentToken() == JsonToken.VALUE_EMBEDDED_OBJECT) {
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.joda.time.IllegalFieldValueException.initCause()

            localInstant = iField.set(localInstant, value);
            long result = iZone.convertLocalToUTC(localInstant, false, instant);
            if (get(result) != value) {
                IllegalInstantException cause = new IllegalInstantException(localInstant,  iZone.getID());
                IllegalFieldValueException ex = new IllegalFieldValueException(iField.getType(), Integer.valueOf(value), cause.getMessage());
                ex.initCause(cause);
                throw ex;
            }
            return result;
        }
View Full Code Here

Examples of com.fasterxml.jackson.databind.JsonMappingException.initCause()

                    msg = msg + ", problem: "+m2;
                }
            }
            JsonMappingException e = ctxt.weirdStringException(text, _valueClass, msg);
            if (cause != null) {
                e.initCause(cause);
            }
            throw e;
            // nothing to do here, yet? We'll fail anyway
        }
        if (jp.getCurrentToken() == JsonToken.VALUE_EMBEDDED_OBJECT) {
View Full Code Here

Examples of com.foundationdb.server.error.ProtobufReadException.initCause()

        try {
            msg = DynamicMessage.parseFrom(converter.getMessageType(), storeData.rawValue);
        }
        catch (InvalidProtocolBufferException ex) {
            ProtobufReadException nex = new ProtobufReadException(converter.getMessageType().getName(), ex.getMessage());
            nex.initCause(ex);
            throw nex;
        }
        converter.decode(msg, rowData);
    }
View Full Code Here

Examples of com.google.common.testing.GuavaAsserts.TestAssertionFailure.initCause()

          cause instanceof UnsupportedOperationException) {
        return;
      }
      TestAssertionFailure error = new TestAssertionFailure(
          "wrong exception thrown from " + func + ": " + cause);
      error.initCause(cause);
      throw error;
    }
  }

  private static boolean parameterIsPrimitiveOrNullable(
View Full Code Here

Examples of com.google.gdata.util.AuthenticationException.initCause()

      URL url = new URL(loginProtocol + "://" + domainName + GOOGLE_LOGIN_PATH);
      postOutput = makePostRequest(url, params);
    } catch (IOException e) {
      AuthenticationException ae =
        new AuthenticationException("Error connecting with login URI");
      ae.initCause(e);
      throw ae;
    }

    // Parse the output
    Map<String, String> tokenPairs =
View Full Code Here

Examples of com.google.gwt.core.ext.BadPropertyValueException.initCause()

          winner = cond;
        }
      } catch (UnableToCompleteException e) {
        BadPropertyValueException t = new BadPropertyValueException(
            prop.getName());
        t.initCause(e);
        throw t;
      }
    }
    assert winner != null : "No active Condition for " + prop.getName();
    return winner;
View Full Code Here

Examples of com.google.gwt.core.ext.UnableToCompleteException.initCause()

            generateProxy();
            result = getPackageName() + "." + getClassName();
        } catch (Exception e) {
            e.printStackTrace();
            UnableToCompleteException utce = new UnableToCompleteException();
            utce.initCause(e);
            throw utce;
        }

        return result;
    }
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.