Examples of initCause()


Examples of ae.javax.imageio.metadata.IIOInvalidTreeException.initCause()

                data = (byte []) iioNode.getUserObject();
            } catch (Exception e) {
                IIOInvalidTreeException newGuy =
                    new IIOInvalidTreeException
                    ("Can't get User Object", node);
                newGuy.initCause(e);
                throw newGuy;
            }
        } else {
            throw new IIOInvalidTreeException
                ("Node must have User Object", node);
View Full Code Here

Examples of ag.ion.bion.officelayer.OfficeException.initCause()

        String key = propertyKeys[i];     
        foreignPropertySet.setPropertyValue(key,xPropertySet.getPropertyValue(key));
      }
      catch(Exception exception) {
        OfficeException officeException = new OfficeException(exception.getMessage());
        officeException.initCause(exception);
        throw officeException;
      }
    }
  }
  //----------------------------------------------------------------------------
View Full Code Here

Examples of ag.ion.bion.officelayer.application.OfficeApplicationException.initCause()

      localOfficeConnection.openConnection(officeProgressMonitor);
      setOfficeConnection(localOfficeConnection);
    } catch (Throwable throwable) {
      OfficeApplicationException officeApplicationException = new OfficeApplicationException(
          throwable.getMessage());
      officeApplicationException.initCause(throwable);
      throw officeApplicationException;
    }
  }

  // ----------------------------------------------------------------------------
View Full Code Here

Examples of ag.ion.bion.officelayer.clone.CloneException.initCause()

    try {
      analyseParagraph(paragraph);
    }
    catch(TextException excep) {
      CloneException cloneException =  new CloneException(excep.getMessage());
      cloneException.initCause(excep);
      throw cloneException;
    }
  }
  //----------------------------------------------------------------------------
  /**
 
View Full Code Here

Examples of ag.ion.bion.officelayer.document.DocumentException.initCause()

        throw new DocumentException(Messages
            .getString("DocumentService_exception_url_invalid")); //$NON-NLS-1$
    } catch (Throwable throwable) {
      DocumentException documentException = new DocumentException(
          throwable.getMessage());
      documentException.initCause(throwable);
      throw documentException;
    }
  }

  // ----------------------------------------------------------------------------
View Full Code Here

Examples of ag.ion.bion.officelayer.presentation.PresentationException.initCause()

      XPresentationPage page = presentationPage.getXPresentationPage();
      xDrawView.setCurrentPage(page);
    } catch (Throwable throwable) {
      PresentationException textException = new PresentationException(
          throwable.getMessage());
      textException.initCause(throwable);
      throw textException;
    }
  }

  // ----------------------------------------------------------------------------
View Full Code Here

Examples of ag.ion.bion.officelayer.text.TextException.initCause()

        throw new TextException("A column with the name " + name
            + " is not available.");
    } catch (Exception exception) {
      TextException textException = new TextException(exception
          .getMessage());
      textException.initCause(exception);
      throw textException;
    }
  }

  // ----------------------------------------------------------------------------
View Full Code Here

Examples of ag.ion.bion.officelayer.util.UtilException.initCause()

      }
      return xNumberFormatter.convertNumberToString(key, number);
    } catch (Exception exception) {
      UtilException utilException = new UtilException(exception
          .getMessage());
      utilException.initCause(exception);
      throw utilException;
    }
  }

  // ----------------------------------------------------------------------------
View Full Code Here

Examples of ar.edu.unlp.yaqc4j.exceptions.GenerationError.initCause()

        if (i != constructor.getParameterTypes().length - 1)
          sb.append(",");
      }
      sb.append(")");
      GenerationError ex = new GenerationError(sb.toString());
      ex.initCause(e);
      throw ex;
    }
  }

  /**
 
View Full Code Here

Examples of au.net.causal.projo.prefs.PreferencesException.initCause()

   
    //If we get here, no date formats worked
    //Propogate cause if only one format exists
    PreferencesException ex = new PreferencesException("Error parsing date '" + s + "'.");
    if (dateFormats.size() == 1)
      ex.initCause(lastParseError);
   
    throw ex;
  }
 
  @Override
View Full Code Here
TOP
Copyright © 2015 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.