congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ResourceException.setLinkedException
Code IndexAdd Tabnine to your IDE (free)

How to use
setLinkedException
method
in
javax.resource.ResourceException

Best Java code snippets using javax.resource.ResourceException.setLinkedException (Showing top 20 results out of 315)

origin: eclipse-ee4j/glassfish

private void throwResourceException(SQLException paramSQLException)
 throws ResourceException
{
 ResourceException localResourceException = new ResourceException(ResourceBundle.getBundle("com/sun/connector/jaxr/LocalStrings").getString("SQLException:_") + paramSQLException.getMessage());
 localResourceException.setLinkedException(paramSQLException);
 throw localResourceException;
}

origin: eclipse-ee4j/glassfish

private void throwResourceException(JAXRException paramJAXRException)
 throws ResourceException
{
 this.log.fine("throwing REx in in JAXRManagedConnection constructor");
 paramJAXRException.printStackTrace();
 ResourceException localResourceException = new ResourceException(ResourceBundle.getBundle("com/sun/connector/jaxr/LocalStrings").getString("JAXRException:_") + paramJAXRException.getMessage());
 localResourceException.setLinkedException(paramJAXRException);
 throw localResourceException;
}

origin: com.mockrunner/mockrunner-jca

public boolean execute(InteractionSpec interactionSpec, Record actualRequest, Record actualResponse) throws ResourceException
{
  if(!canHandle(interactionSpec, actualRequest, actualResponse)) return false;
  try
  {
    Class wsifMessageClass = getClassNamed(actualRequest.getClass(), "org.apache.wsif.base.WSIFDefaultMessage");
    Class[] sopParams = new Class[2];
    sopParams[0] = String.class;
    sopParams[1] = Object.class;
    Method sop = wsifMessageClass.getMethod("setObjectPart", sopParams);
    if (sop != null)
    {
      Object[] sopArgs = new Object[2];
      sopArgs[0] = responsePartName;
      sopArgs[1] = responsePart;
      sop.invoke(actualResponse, sopArgs);
      return true;
    }
  } 
  catch(Exception exc)
  {
    ResourceException resExc = new ResourceException("execute() failed");
    resExc.setLinkedException(exc);
    throw resExc;
  }
  return false;
}
origin: com.mockrunner/mockrunner-jdk1.3-j2ee1.3

public boolean execute(InteractionSpec interactionSpec, Record actualRequest, Record actualResponse) throws ResourceException
{
  if(!canHandle(interactionSpec, actualRequest, actualResponse)) return false;
  try
  {
    Class wsifMessageClass = getClassNamed(actualRequest.getClass(), "org.apache.wsif.base.WSIFDefaultMessage");
    Class[] sopParams = new Class[2];
    sopParams[0] = String.class;
    sopParams[1] = Object.class;
    Method sop = wsifMessageClass.getMethod("setObjectPart", sopParams);
    if (sop != null)
    {
      Object[] sopArgs = new Object[2];
      sopArgs[0] = responsePartName;
      sopArgs[1] = responsePart;
      sop.invoke(actualResponse, sopArgs);
      return true;
    }
  } 
  catch(Exception exc)
  {
    ResourceException resExc = new ResourceException("execute() failed");
    resExc.setLinkedException(exc);
    throw resExc;
  }
  return false;
}
origin: com.mockrunner/mockrunner-jdk1.4-j2ee1.3

public boolean execute(InteractionSpec interactionSpec, Record actualRequest, Record actualResponse) throws ResourceException
{
  if(!canHandle(interactionSpec, actualRequest, actualResponse)) return false;
  try
  {
    Class wsifMessageClass = getClassNamed(actualRequest.getClass(), "org.apache.wsif.base.WSIFDefaultMessage");
    Class[] sopParams = new Class[2];
    sopParams[0] = String.class;
    sopParams[1] = Object.class;
    Method sop = wsifMessageClass.getMethod("setObjectPart", sopParams);
    if (sop != null)
    {
      Object[] sopArgs = new Object[2];
      sopArgs[0] = responsePartName;
      sopArgs[1] = responsePart;
      sop.invoke(actualResponse, sopArgs);
      return true;
    }
  } 
  catch(Exception exc)
  {
    ResourceException resExc = new ResourceException("execute() failed");
    resExc.setLinkedException(exc);
    throw resExc;
  }
  return false;
}
origin: com.mockrunner/mockrunner-jdk1.4-j2ee1.3

resExc.setLinkedException(exc);
throw resExc;
origin: eclipse-ee4j/glassfish

((ResourceException)localObject).setLinkedException(localException);
throw ((ResourceException)localObject);
origin: com.mockrunner/mockrunner-jdk1.3-j2ee1.3

resExc.setLinkedException(exc);
throw resExc;
origin: com.mockrunner/mockrunner-jca

resExc.setLinkedException(exc);
throw resExc;
origin: com.mockrunner/mockrunner-jca

resExc.setLinkedException(exc);
throw resExc;
origin: com.mockrunner/mockrunner-jdk1.3-j2ee1.3

resExc.setLinkedException(exc);
throw resExc;
origin: com.mockrunner/mockrunner-jdk1.4-j2ee1.3

resExc.setLinkedException(exc);
throw resExc;
origin: com.mockrunner/mockrunner-jdk1.3-j2ee1.3

resExc.setLinkedException(exc);
throw resExc;
origin: com.mockrunner/mockrunner-jdk1.4-j2ee1.3

resExc.setLinkedException(exc);
throw resExc;
origin: com.mockrunner/mockrunner-jdk1.3-j2ee1.3

resExc.setLinkedException(exc);
throw resExc;
origin: com.mockrunner/mockrunner-jdk1.3-j2ee1.3

resExc.setLinkedException(exc);
throw resExc;
origin: com.mockrunner/mockrunner-jdk1.4-j2ee1.3

resExc.setLinkedException(exc);
throw resExc;
origin: com.mockrunner/mockrunner-jdk1.4-j2ee1.3

resExc.setLinkedException(exc);
throw resExc;
origin: apache/jackrabbit

/**
 * Create/startup the repository.
 */
@SuppressWarnings("deprecation")
private void createRepository() throws ResourceException {
  if (repository == null) {
    try {
      JCARepositoryManager mgr = JCARepositoryManager.getInstance();
      repository = mgr.createRepository(parameters);
      log("Created repository (" + repository + ")");
    } catch (RepositoryException e) {
      log("Failed to create repository", e);
      ResourceException exception = new ResourceException(
          "Failed to create repository: " + e.getMessage());
      exception.setLinkedException(e);
      throw exception;
    }
  }
}
origin: org.apache.jackrabbit/jackrabbit-jca

/**
 * Create/startup the repository.
 */
@SuppressWarnings("deprecation")
private void createRepository() throws ResourceException {
  if (repository == null) {
    try {
      JCARepositoryManager mgr = JCARepositoryManager.getInstance();
      repository = mgr.createRepository(parameters);
      log("Created repository (" + repository + ")");
    } catch (RepositoryException e) {
      log("Failed to create repository", e);
      ResourceException exception = new ResourceException(
          "Failed to create repository: " + e.getMessage());
      exception.setLinkedException(e);
      throw exception;
    }
  }
}
javax.resourceResourceExceptionsetLinkedException

Javadoc

Add a linked Exception to this ResourceException.

Popular methods of ResourceException

  • <init>
    Constructs a new throwable with the specified cause.
  • getMessage
    Returns a detailed message string describing this exception.
  • getErrorCode
    Get the error code.
  • getCause
  • printStackTrace
  • getLinkedException
    Get the exception linked to this ResourceException
  • initCause
  • toString
  • getHttpStatus
  • getStatus
  • setErrorCode
    Set the error code.
  • setErrorCode

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now