Revision 18316 branches/v10/libraries/libRemoteServices/src/org/gvsig/remoteClient/wfs/exceptions/ExceptionsFactory.java

View differences:

ExceptionsFactory.java
74 74
			case KXmlParser.START_TAG:
75 75
				if (parser.getName().compareToIgnoreCase(CapabilitiesTags.SERVICE_EXCEPTION)==0)
76 76
				{
77
					String code = null;
77 78
					for (int i=0 ; i<parser.getAttributeCount() ; i++){
78 79
						String attName = parser.getAttributeName(i);
79
						String code = null;
80 80
						if (attName.compareTo(CapabilitiesTags.CODE)==0){
81 81
							code = parser.getAttributeValue(i);
82 82
						}
......
84 84
							if (code.compareTo(CapabilitiesTags.INVALID_FORMAT)==0){
85 85
								parser.next();
86 86
								return new InvalidFormatException(parser.getText());
87
							}
88
							//Code unspecified
89
							parser.next();
90
							return new WFSException(code,parser.getText());
87
							}							
91 88
						}
92 89
					}
90
					parser.next();
91
					return new WFSException(code,parser.getText());
93 92
				}  		                       
94 93
				break;
95 94
			case KXmlParser.END_TAG:

Also available in: Unified diff