01: /*
02: * GWT-Ext Widget Library
03: * Copyright(c) 2007-2008, GWT-Ext.
04: * licensing@gwt-ext.com
05: *
06: * http://www.gwt-ext.com/license
07: */
08: package com.gwtext.client.data;
09:
10: /**
11: * An HTTP specific {@link com.gwtext.client.data.StoreLoadException} that is raised when using
12: * the {@link HttpProxy}.
13: *
14: * @see com.gwtext.client.data.event.StoreListener#onLoadException(Throwable)
15: */
16: public class HttpStoreLoadException extends StoreLoadException {
17:
18: private int httpStatus;
19:
20: public HttpStoreLoadException(int httpStatus, String message) {
21: super (message);
22: this .httpStatus = httpStatus;
23: }
24:
25: /**
26: * Returns the http status code.
27: *
28: * @return http status code
29: */
30: public int getHttpStatus() {
31: return httpStatus;
32: }
33: }
|