com.atlassian.confluence.api.service.exceptions
Class InvalidRepresentationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.atlassian.confluence.api.service.exceptions.InvalidRepresentationException
All Implemented Interfaces:
java.io.Serializable

public class InvalidRepresentationException
extends java.lang.RuntimeException

Thrown when an operation is attempted that is not valid for the kind of ContentBody you are providing. For example, you can update a piece of content by providing STORAGE or EDITOR format, but not VIEW format.

See Also:
Serialized Form

Constructor Summary
InvalidRepresentationException(ContentRepresentation unacceptableRepresentation, ContentRepresentation[] permittedRepresentations)
           
InvalidRepresentationException(ContentRepresentation representation, java.lang.Iterable<ContentRepresentation> contentRepresentations)
           
 
Method Summary
 java.lang.Iterable<ContentRepresentation> getPermittedRepresentations()
           
 
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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidRepresentationException

public InvalidRepresentationException(ContentRepresentation unacceptableRepresentation,
                                      ContentRepresentation[] permittedRepresentations)

InvalidRepresentationException

public InvalidRepresentationException(ContentRepresentation representation,
                                      java.lang.Iterable<ContentRepresentation> contentRepresentations)
Method Detail

getPermittedRepresentations

public java.lang.Iterable<ContentRepresentation> getPermittedRepresentations()


Copyright © 2003-2014 Atlassian. All Rights Reserved.