Package org.geoserver.wcs2_0.exception

Examples of org.geoserver.wcs2_0.exception.WCS20Exception.initCause()


    protected void throwInvalidSyntaxException(Exception e) {
        WCS20Exception ex = new WCS20Exception(
                "Invalid ScaleAxes syntax, expecting a comma separate list of axisName(scale)*",
                WCS20Exception.WCS20ExceptionCode.InvalidEncodingSyntax, "scaleAxes");
        if(e != null) {
            ex.initCause(e);
        }
        throw ex;
       
    }
}
View Full Code Here


    protected void throwInvalidSyntaxException(Exception e) {
        WCS20Exception ex = new WCS20Exception(
                "Invalid ScaleSize syntax, expecting a comma separate list of axisName(size)*",
                WCS20Exception.WCS20ExceptionCode.InvalidEncodingSyntax, "scaleSize");
        if (e != null) {
            ex.initCause(e);
        }
        throw ex;

    }
}
View Full Code Here

                se.getTargetAxisExtent().add(te);
            } catch(NumberFormatException e) {
                WCS20Exception ex = new WCS20Exception(
                        "Invalid ScaleExtent syntax, expecting a comma separate list of axisName(min,max)*",
                        WCS20Exception.WCS20ExceptionCode.InvalidEncodingSyntax, "scaleExtent");
                ex.initCause(e);
                throw ex;
            }

            // we should also have a comma after the closed parens
            int idxSeparator = value.indexOf(",", idxClosed);
View Full Code Here

            try {
                return OverviewPolicy.valueOf(overviewPolicy);
            } catch (Exception e) {
                final WCS20Exception exception = new WCS20Exception("Invalid " + WCS20Const.OVERVIEW_POLICY_EXTENSION,
                        WCS20Exception.WCS20ExceptionCode.InvalidParameterValue, overviewPolicy);
                exception.initCause(e);
                throw exception;
            }
        }
        return null;
    }
View Full Code Here

                return lonLatCRSFactory.createCoordinateReferenceSystem(crsName);
            } catch (Exception e) {
                final WCS20Exception exception = new WCS20Exception("Invalid "+identifier,
                        isOutputCRS?WCS20Exception.WCS20ExceptionCode.OutputCrsNotSupported:WCS20Exception.WCS20ExceptionCode.SubsettingCrsNotSupported,
                                crsName);
                exception.initCause(e);
                throw exception;
            }       

        }
       
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.