Package org.dbwiki.exception.web

Examples of org.dbwiki.exception.web.WikiRequestException


          return new RequestParameterVersionAll();
        } else if (value.startsWith(RequestParameterVersion.VersionChanges)) {
          try {
            return new RequestParameterVersionChanges(Integer.parseInt(value.substring(RequestParameterVersion.VersionChanges.length())));
          } catch (NumberFormatException e) {
            throw new WikiRequestException(WikiRequestException.InvalidParameterValue, parameter.toString());
          }
        } else {
          try {
            return new RequestParameterVersionSingle(Integer.parseInt(value));
          } catch (NumberFormatException e) {
            throw new WikiRequestException(WikiRequestException.InvalidParameterValue, parameter.toString());
          }
        }
      } else {
        throw new WikiRequestException(WikiRequestException.MissingParameterValue, parameter.toString());
      }
    } else {
      return new RequestParameterVersionCurrent();
    }
  }
View Full Code Here

TOP

Related Classes of org.dbwiki.exception.web.WikiRequestException

Copyright © 2018 www.massapicom. 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.