站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.2.0 patch1 API 英文版文档

HttpError (JBoss Seam API Documentation) - JBoss Seam 1.2.0 patch1 API 英文版文档


org.jboss.seam.annotations
Annotation Type HttpError


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
@Inherited
public @interface HttpError

Specifies that an exception results in a HTTP error.

Author:
Gavin King

Optional Element Summary
 boolean end
          Should the current long-running conversation end when this exception occurs.
 int errorCode
          The HTTP error code, default to 500.
 String message
          The message to be sent in the HTTP error, default to using the exception message.
 

message

public abstract String message
The message to be sent in the HTTP error, default to using the exception message.

Returns:
a templated message
Default:
""

errorCode

public abstract int errorCode
The HTTP error code, default to 500.

Returns:
an error code
Default:
500

end

public abstract boolean end
Should the current long-running conversation end when this exception occurs.

Returns:
true if we should end the conversation
Default:
false