com.atlassian.jira.plugin.user
Class WebErrorMessageImpl

java.lang.Object
  extended by com.atlassian.jira.plugin.user.WebErrorMessageImpl
All Implemented Interfaces:
WebErrorMessage

@PublicApi
public class WebErrorMessageImpl
extends Object
implements WebErrorMessage

Basic WebErrorMessage Implementation.

Since:
6.0

Constructor Summary
WebErrorMessageImpl(String description, String snippet, URI furtherInformationURI)
           
 
Method Summary
 String getDescription()
          Returns a message containing the reason an error message has been generated.
 String getSnippet()
          Returns a short form of the error message that getDescription would provide.
 URI getURI()
          Returns a URI that can be used to direct users to pages with more information that can be tied to the snippet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebErrorMessageImpl

public WebErrorMessageImpl(String description,
                           String snippet,
                           URI furtherInformationURI)
Method Detail

getDescription

public String getDescription()
Description copied from interface: WebErrorMessage
Returns a message containing the reason an error message has been generated.

Specified by:
getDescription in interface WebErrorMessage
Returns:
an error message; must not be null

getSnippet

public String getSnippet()
Description copied from interface: WebErrorMessage
Returns a short form of the error message that getDescription would provide.

Specified by:
getSnippet in interface WebErrorMessage
Returns:
short form representation of getDescription; must not be null

getURI

public URI getURI()
Description copied from interface: WebErrorMessage
Returns a URI that can be used to direct users to pages with more information that can be tied to the snippet

Specified by:
getURI in interface WebErrorMessage
Returns:
a uri, or null if none is available


Copyright © 2002-2014 Atlassian. All Rights Reserved.