Faceted Project Framework
Version 1.3

org.eclipse.wst.common.project.facet.core
Class FacetedProjectFrameworkException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.eclipse.core.runtime.CoreException
              extended by org.eclipse.wst.common.project.facet.core.FacetedProjectFrameworkException
All Implemented Interfaces:
Serializable

public final class FacetedProjectFrameworkException
extends CoreException

Exception that can be thrown in various places in the framework instead of a more generic CoreException.

Since:
1.4
Author:
Konstantin Komissarchik
See Also:
Serialized Form

Constructor Summary
FacetedProjectFrameworkException(IStatus status)
          Creates a new faceted project framework exception instance.
 
Method Summary
 boolean isExpected()
          Returns whether this exception is expected from thrower's perspective.
 void setExpected(boolean expected)
          Sets whether this exception is expected from thrower's perspective.
 
Methods inherited from class org.eclipse.core.runtime.CoreException
getCause, getStatus, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FacetedProjectFrameworkException

public FacetedProjectFrameworkException(IStatus status)
Creates a new faceted project framework exception instance.

Parameters:
status - the status object with information about the failure
Method Detail

isExpected

public boolean isExpected()
Returns whether this exception is expected from thrower's perspective. This can be used as a signal by handlers to alter the way the exception is presented to the user.

Returns:
true if the exception is expected from thrower's perspective

setExpected

public void setExpected(boolean expected)
Sets whether this exception is expected from thrower's perspective. This can be used as a signal by handlers to alter the way the exception is presented to the user.

Parameters:
expected - if the exception is expected from thrower's perspective

Faceted Project Framework
Version 1.3

Copyright (c) 2008 Oracle and others. All rights reserved.