|
Re: How can i handle Exception(eg. BirtException) ? [message #903075 is a reply to message #902968] |
Tue, 21 August 2012 20:14   |
|
Do you mean when a user enters a parameter value? If you are using the
api you can always check for an error on the task:
finally
{
if ( !task.getErrors( ).isEmpty( ) )
{
for ( Object e : task.getErrors( ) )
{
//Check here
( (Exception) e ).printStackTrace( );
}
}
Jason
On 8/21/2012 8:54 AM, Steven Sinclair wrote:
> :roll:
> I integrate birt report 4.2.0 with my webapp ,when user input some value
> in condition field,eg. numeric field.user input "quantity", not 1 or 2
> and etc,birt throws exception.
>
> i use error-page element in web.xml,but that had no effect on these
> exception at all.
>
> error stack displayed on web page.Face to end user. unfriendliness.
>
> Anyone can give me some idea? How to uniformly handle these Exception
> and friendly for end user.
>
> Thank you.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02445 seconds