Package java.util

Examples of java.util.MissingResourceException.initCause()


            J2DoPrivHelper.getAbsolutePathAction(file));
        reportErrors(errs, aPath, err);
        String rsrc = aPath + "#" + anchor;
        MissingResourceException ex = new MissingResourceException(rsrc,
                ProductDerivations.class.getName(), rsrc);
        ex.initCause(err);
        throw ex;
    }
  
    /**
     * Return a {@link ConfigurationProvider} that has parsed system defaults.
View Full Code Here


        Throwable nested) {
        if (errs == null)
            return;
        MissingResourceException ex = new MissingResourceException(errs.toString(),
                ProductDerivations.class.getName(), resource);
        ex.initCause(nested);
        throw ex;
    }

    /**
     * Return a List<String> of all the fully-qualified anchors specified in
View Full Code Here

                        record.setThrown (exception);
                        Logging.log(IndexedResourceBundle.class, methodName, record);
                        final MissingResourceException error = new MissingResourceException(
                                Exceptions.getLocalizedMessage(exception, locale), // For users, use requested locale.
                                baseName, key);
                        error.initCause(exception);
                        throw error;
                    }
                    /*
                     * Now, logs the message. This message is provided only in English.
                     * Note that Locale.getDisplayName() may return different string on
View Full Code Here

            cf = ClassFile.readFrom(in);
        } catch (IOException e) {
            MissingResourceException e2 = new MissingResourceException
                ("Error loading class file: " + e.getMessage(), className, null);
            try {
                e2.initCause(e);
            } catch (NoSuchMethodError e3) {
            }
            throw e2;
        }
View Full Code Here

        return result;
    }
    catch (Exception ex)
    {
      MissingResourceException exception = new MissingResourceException("Exception occured when looking for bundle '" +  bundlename + "'", bundlename, "");
      exception.initCause(ex);
      throw exception;
     
    }
  }
View Full Code Here

        return result;
    }
    catch (Exception ex)
    {
      MissingResourceException exception = new MissingResourceException("Exception occured when looking for bundle '" +  bundlename + "'", bundlename, "");
      exception.initCause(ex);
      throw exception;
     
    }
  }
View Full Code Here

                        record.setThrown (exception);
                        Logging.log(IndexedResourceBundle.class, methodName, record);
                        final MissingResourceException error = new MissingResourceException(
                                Exceptions.getLocalizedMessage(exception, locale), // For users, use requested locale.
                                baseName, key);
                        error.initCause(exception);
                        throw error;
                    }
                    /*
                     * Now, logs the message. This message is provided only in English.
                     * Note that Locale.getDisplayName() may return different string on
View Full Code Here

            final Logger logger = Logging.getLogger(IndexedResourceBundle.class);
            record.setLoggerName(logger.getName());
            logger.log(record);
            final MissingResourceException error = new MissingResourceException(
                    exception.getLocalizedMessage(), getClass().getName(), key);
            error.initCause(exception);
            throw error;
        }
    }

    /**
 
View Full Code Here

        buf.append((char) ch);
      }
    }
    catch (IOException e) {
      MissingResourceException mre = new MissingResourceException("error reading SQL resource " + hostClass.getName() + "/" + filename, hostClass.getName(), filename);
      mre.initCause(e);
      throw mre;
    }
    return buf.toString();
  }
 
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.