EspErrors.hpp 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ############################################################################## */
  13. #ifndef __ESP_ERRORS_HPP__
  14. #define __ESP_ERRORS_HPP__
  15. namespace EspCoreErrors
  16. {
  17. const unsigned int Base = 1000;
  18. }
  19. namespace WsGatewayErrors
  20. {
  21. const unsigned int Base = EspCoreErrors::Base+200; //1200 -- pls don't change this....
  22. const unsigned int MissingConfiguration = Base+0;
  23. const unsigned int MissingUserName = Base+1;
  24. const unsigned int MissingPassword = Base+2;
  25. const unsigned int MissingOptions = Base+3;
  26. const unsigned int MissingUrl = Base+4;
  27. const unsigned int InvalidUrl = Base+5;
  28. const unsigned int NoResponse = Base+6;
  29. }
  30. namespace WsAccurintErrors
  31. {
  32. const unsigned int Base = EspCoreErrors::Base+1005; //2005 -- pls don't change this....the web is coded to expect the following codes
  33. const unsigned int RealTimeInvalidUse = Base+0; //"Access to realtime data is not allowed for your intended use."
  34. const unsigned int RealTimeInvalidState = Base+1; //"Access to realtime search is not allowed under the DPPA guidelines for your intended use for that state."
  35. const unsigned int RealTimeMissingStateZip = Base+2; //"A valid state or zip must be specified for realtime data."
  36. const unsigned int RealTimeMissingName = Base+3; //"A person or company name must be specified for realtime data."
  37. const unsigned int RealTimeMissingAddress = Base+4; //"Street address with City+State or Zip must be specified for realtime data."
  38. }
  39. #endif //__ESP_ERRORS_HPP__