EspErrors.hpp 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*##############################################################################
  2. Copyright (C) 2011 HPCC Systems.
  3. All rights reserved. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Affero General Public License as
  5. published by the Free Software Foundation, either version 3 of the
  6. License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Affero General Public License for more details.
  11. You should have received a copy of the GNU Affero General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. ############################################################################## */
  14. #ifndef __ESP_ERRORS_HPP__
  15. #define __ESP_ERRORS_HPP__
  16. namespace EspCoreErrors
  17. {
  18. const unsigned int Base = 1000;
  19. }
  20. namespace WsGatewayErrors
  21. {
  22. const unsigned int Base = EspCoreErrors::Base+200; //1200 -- pls don't change this....
  23. const unsigned int MissingConfiguration = Base+0;
  24. const unsigned int MissingUserName = Base+1;
  25. const unsigned int MissingPassword = Base+2;
  26. const unsigned int MissingOptions = Base+3;
  27. const unsigned int MissingUrl = Base+4;
  28. const unsigned int InvalidUrl = Base+5;
  29. const unsigned int NoResponse = Base+6;
  30. }
  31. namespace WsAccurintErrors
  32. {
  33. const unsigned int Base = EspCoreErrors::Base+1005; //2005 -- pls don't change this....the web is coded to expect the following codes
  34. const unsigned int RealTimeInvalidUse = Base+0; //"Access to realtime data is not allowed for your intended use."
  35. const unsigned int RealTimeInvalidState = Base+1; //"Access to realtime search is not allowed under the DPPA guidelines for your intended use for that state."
  36. const unsigned int RealTimeMissingStateZip = Base+2; //"A valid state or zip must be specified for realtime data."
  37. const unsigned int RealTimeMissingName = Base+3; //"A person or company name must be specified for realtime data."
  38. const unsigned int RealTimeMissingAddress = Base+4; //"Street address with City+State or Zip must be specified for realtime data."
  39. }
  40. #endif //__ESP_ERRORS_HPP__