com.evolveum.midpoint.web.model
Class WebModelException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.evolveum.midpoint.web.model.WebModelException
All Implemented Interfaces:
java.io.Serializable

public class WebModelException
extends java.lang.Exception

Simple exception for the Web GUI. In GUI there is no need for many exception types. The GUI can only display the error anyway, cannot automatically react. Therefore this exception has properties that can be used to display the error in a human-readable way. The standard "message" propety should be used as a short error description, e.g. one or two lines of text explaining what had happened - in a human-readable way. No stack traces, java class names and similar Java slang please.

Author:
semancik
See Also:
Serialized Form

Field Summary
protected  java.lang.String title
           
 
Constructor Summary
WebModelException()
          Creates a new instance of WebModelException without detail message.
WebModelException(java.lang.String msg)
          Constructs an instance of WebModelException with the specified detail message.
WebModelException(java.lang.String msg, java.lang.String title)
           
WebModelException(java.lang.String msg, java.lang.String title, java.lang.Throwable t)
           
 
Method Summary
 java.lang.String getTitle()
          Get the value of error title.
 void setTitle(java.lang.String title)
          Set the value of title This should be few words describing the error type.
 
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
 

Field Detail

title

protected java.lang.String title
Constructor Detail

WebModelException

public WebModelException()
Creates a new instance of WebModelException without detail message.


WebModelException

public WebModelException(java.lang.String msg)
Constructs an instance of WebModelException with the specified detail message.

Parameters:
msg - the detail message.

WebModelException

public WebModelException(java.lang.String msg,
                         java.lang.String title)

WebModelException

public WebModelException(java.lang.String msg,
                         java.lang.String title,
                         java.lang.Throwable t)
Method Detail

getTitle

public java.lang.String getTitle()
Get the value of error title. This should be few words describing the error type. Should be short to fit into a window title.

Returns:
the value of title

setTitle

public void setTitle(java.lang.String title)
Set the value of title This should be few words describing the error type. Should be short to fit into a window title.

Parameters:
title - new value of title


Copyright © 2012 evolveum. All Rights Reserved.