Code example for MissingResourceException

Methods: getMessage

0
     
    static { 
        try { 
            resources = ResourceBundle.getBundle("org.apache.rahas.errors");
        } catch (MissingResourceException e) {
            throw new RuntimeException(e.getMessage());
        } 
    } 
     
    public TrustException(String faultCode, Object[] args) {
        super(getMessage(faultCode, args));
        this.faultCode = getFaultCode(faultCode);
        this.faultString = getMessage(faultCode, args);
    } 
     
    /** 
     * Construct the fault properly code for the standard faults 
     * @param faultCode2 
     * @return 
     */ 
    private String getFaultCode(String code) {