Examples of initCause()


Examples of org.apache.hadoop.hbase.exceptions.DroppedSnapshotException.initCause()

      if (wal != null) {
        wal.abortCacheFlush(this.getRegionInfo().getEncodedNameAsBytes());
      }
      DroppedSnapshotException dse = new DroppedSnapshotException("region: " +
          Bytes.toStringBinary(getRegionName()));
      dse.initCause(t);
      status.abort("Flush failed: " + StringUtils.stringifyException(t));
      throw dse;
    }

    // If we get to here, the HStores have been written.
View Full Code Here

Examples of org.apache.hadoop.hbase.exceptions.FailedLogCloseException.initCause()

          // Failed close of log file.  Means we're losing edits.  For now,
          // shut ourselves down to minimize loss.  Alternative is to try and
          // keep going.  See HBASE-930.
          FailedLogCloseException flce =
            new FailedLogCloseException("#" + currentfilenum);
          flce.initCause(e);
          throw flce;
        }
      }
      if (currentfilenum >= 0) {
        oldFile = computeFilename(currentfilenum);
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.api.InvalidOperationException.initCause()

            context.getDbName(), context.getTableName()).build());
  }

  private InvalidOperationException invalidOperationException(Exception e) {
    InvalidOperationException ex = new InvalidOperationException(e.getMessage());
    ex.initCause(e.getCause());
    return ex;
  }

  /**
   * Assemble the required privileges and requested privileges. Validate using
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.api.MetaException.initCause()

          getTopicPrefix(conf) + "." + newTbl.getDbName().toLowerCase() + "."
            + newTbl.getTableName().toLowerCase());
        handler.alter_table(newTbl.getDbName(), newTbl.getTableName(), newTbl);
      } catch (InvalidOperationException e) {
        MetaException me = new MetaException(e.toString());
        me.initCause(e);
        throw me;
      } catch (NoSuchObjectException e) {
        MetaException me = new MetaException(e.toString());
        me.initCause(e);
        throw me;
View Full Code Here

Examples of org.apache.hadoop.hive.ql.metadata.AuthorizationException.initCause()

    return ex;
  }

  private AuthorizationException authorizationException(Exception e) {
    AuthorizationException ex = new AuthorizationException(e);
    ex.initCause(e);
    return ex;
  }

  private static AccessControlException accessControlException(
      org.apache.hadoop.fs.permission.AccessControlException e) {
View Full Code Here

Examples of org.apache.hadoop.hive.ql.metadata.HiveException.initCause()

    }
  }

  private HiveException hiveException(Exception e) {
    HiveException ex = new HiveException(e);
    ex.initCause(e);
    return ex;
  }

  private AuthorizationException authorizationException(Exception e) {
    AuthorizationException ex = new AuthorizationException(e);
View Full Code Here

Examples of org.apache.hive.service.cli.HiveSQLException.initCause()

  protected HiveSQLException toSQLException(String prefix, CommandProcessorResponse response) {
    HiveSQLException ex = new HiveSQLException(prefix + ": " + response.getErrorMessage(),
        response.getSQLState(), response.getResponseCode());
    if (response.getException() != null) {
      ex.initCause(response.getException());
    }
    return ex;
  }
}
View Full Code Here

Examples of org.apache.http.MalformedChunkCodingException.initCause()

            this.footers = AbstractMessageParser.parseHeaders
                (in, -1, -1, null);
        } catch (final HttpException ex) {
            final IOException ioe = new MalformedChunkCodingException("Invalid footer: "
                    + ex.getMessage());
            ioe.initCause(ex);
            throw ioe;
        }
    }

    /**
 
View Full Code Here

Examples of org.apache.jackrabbit.test.RepositoryStubException.initCause()

            return getOrCreateRepository(dir, xml);

        } catch (Exception e) {
            RepositoryStubException exception =
                    new RepositoryStubException("Failed to start repository");
            exception.initCause(e);
            throw exception;
        }
    }

    protected Repository createRepository(String dir, String xml)
View Full Code Here

Examples of org.apache.jetspeed.om.folder.FolderNotFoundException.initCause()

                rootFolderProxy = FolderProxy.newInstance(this, locatorName, null, rootFolder);
            }
            catch (NodeException ne)
            {
                FolderNotFoundException fnfe = new FolderNotFoundException("Root folder not found");
                fnfe.initCause(ne);
                throw fnfe;
            }
            catch (NodeNotFoundException nnfe)
            {
                FolderNotFoundException fnfe = new FolderNotFoundException("Root folder not found");
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.