org.apache.tuscany.sca.contribution.service
Class UnsupportedContentTypeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.tuscany.sca.contribution.service.AbstractContributionException
              extended by org.apache.tuscany.sca.contribution.service.ContributionException
                  extended by org.apache.tuscany.sca.contribution.service.UnsupportedContentTypeException
All Implemented Interfaces:
java.io.Serializable

public class UnsupportedContentTypeException
extends ContributionException

Exception thrown to indicate that a Content-Type is not supported by this SCA Domain. The Content-Type value supplied will be returned as the message text for this exception.

Version:
$Rev: 522653 $ $Date: 2007-03-26 15:30:21 -0700 (Mon, 26 Mar 2007) $
See Also:
Serialized Form

Constructor Summary
UnsupportedContentTypeException(java.lang.String contentType)
          Constructor specifying the Content-Type value that is not supported.
UnsupportedContentTypeException(java.lang.String contentType, java.lang.String identifier)
          Constructor specifying the Content-Type value that is not supported and an identifier to use with this exception (typically the resource being processed).
 
Method Summary
 
Methods inherited from class org.apache.tuscany.sca.contribution.service.AbstractContributionException
appendBaseMessage, getIdentifier
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnsupportedContentTypeException

public UnsupportedContentTypeException(java.lang.String contentType)
Constructor specifying the Content-Type value that is not supported.

Parameters:
contentType - the type that is not supported

UnsupportedContentTypeException

public UnsupportedContentTypeException(java.lang.String contentType,
                                       java.lang.String identifier)
Constructor specifying the Content-Type value that is not supported and an identifier to use with this exception (typically the resource being processed).

Parameters:
contentType - the type that is not supported
identifier - an identifier for this exception