javax.faces

Class FacesException

Implemented Interfaces:
Serializable
Known Direct Subclasses:
AbortProcessingException, ConverterException, EvaluationException, ValidatorException

public class FacesException
extends RuntimeException

See Also:
Serialized Form

Constructor Summary

FacesException()
Constructs a new runtime exception with null as its detail message.
FacesException(String msg)
Constructs a new runtime exception with the specified detail message.
FacesException(String msg, Throwable cause)
Constructs a new runtime exception with the specified detail message and cause.
FacesException(Throwable cause)
Constructs a new runtime exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).

Method Summary

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

FacesException

public FacesException()
Constructs a new runtime exception with null as its detail message. The cause is not initialized, and may subsequently be initialized by a call to RuntimeException.
Usages and Demos :

View More Examples of FacesException()
   1:                 Object params [] = {actionListener};
   2:                 throw new javax.faces.FacesException();
   3:             }
   4:         }

View Full Code Here
   1:                 Object params [] = {actionListener};
   2:                 throw new javax.faces.FacesException();
   3:             }
   4:         }

View Full Code Here
   1:                 Object params [] = {actionListener};
   2:                 throw new javax.faces.FacesException();
   3:             }
   4:         }
   5:         if (styleClass != null) {

View Full Code Here
   1:                 Object params [] = {actionListener};
   2:                 throw new javax.faces.FacesException();
   3:             }
   4:         }

View Full Code Here

FacesException

public FacesException(String msg)
Constructs a new runtime exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to RuntimeException.
Parameters:
Usages and Demos :

View More Examples of FacesException(String msg)
   1:       String message = "CANT CREATE LIFECYCLE ERROR" ;
   2:       throw new FacesException(message);
   3:     }
   4:     return result;
   5:   }

View Full Code Here
   1:     } catch (Exception e) {
   2:       throw new FacesException(e);
   3:     }
   4:   }
   5:   

View Full Code Here
   1:             log("RequestBean1 Initialization Failure", e);
   2:             throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
   3:         }
   4:         ...
   5:             log("RequestBean1 Initialization Failure", e);
   6:             throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
   7:         }
   8: 
   9:     }

View Full Code Here
   1:             log("ApplicationBean1 Initialization Failure", e);
   2:             throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
   3:         }
   4:         ...
   5:             log("ApplicationBean1 Initialization Failure", e);
   6:             throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
   7:         }
   8: 
   9:     }

View Full Code Here
   1:             log("Help Initialization Failure", e);
   2:             throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
   3:         }
   4:         ...
   5:             log("Help Initialization Failure", e);
   6:             throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
   7:         }
   8: 
   9:     }

View Full Code Here

FacesException

public FacesException(String msg,
                      Throwable cause)
Constructs a new runtime exception with the specified detail message and cause.

Note that the detail message associated with cause is not automatically incorporated in this runtime exception's detail message.

Parameters:
cause - the cause (which is saved for later retrieval by the RuntimeException.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Since:
1.4
Usages and Demos :

View More Examples of FacesException(String msg,Throwable cause)
   1:             log.error(message, e);
   2:             throw new FacesException(message, e);
   3:         }
   4:     }
   5: }

View Full Code Here
   1:             log.error(message, e);
   2:             throw new FacesException(message, e);
   3:         }
   4:     }

View Full Code Here

FacesException

public FacesException(Throwable cause)
Constructs a new runtime exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.
Parameters:
cause - the cause (which is saved for later retrieval by the RuntimeException.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Since:
1.4
Usages and Demos :

View More Examples of FacesException(Throwable cause)
   1:       String message = "CANT CREATE LIFECYCLE ERROR" ;
   2:       throw new FacesException(message);
   3:     }
   4:     return result;
   5:   }

View Full Code Here
   1:     } catch (Exception e) {
   2:       throw new FacesException(e);
   3:     }
   4:   }
   5:   

View Full Code Here
   1:             log("RequestBean1 Initialization Failure", e);
   2:             throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
   3:         }
   4:         ...
   5:             log("RequestBean1 Initialization Failure", e);
   6:             throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
   7:         }
   8: 
   9:     }

View Full Code Here
   1:             log("ApplicationBean1 Initialization Failure", e);
   2:             throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
   3:         }
   4:         ...
   5:             log("ApplicationBean1 Initialization Failure", e);
   6:             throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
   7:         }
   8: 
   9:     }

View Full Code Here
   1:             log("Help Initialization Failure", e);
   2:             throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
   3:         }
   4:         ...
   5:             log("Help Initialization Failure", e);
   6:             throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
   7:         }
   8: 
   9:     }

View Full Code Here