geonode.geoapps.api.exceptions ============================== .. py:module:: geonode.geoapps.api.exceptions Classes ------- .. autoapisummary:: geonode.geoapps.api.exceptions.DuplicateGeoAppException geonode.geoapps.api.exceptions.InvalidGeoAppException geonode.geoapps.api.exceptions.GeneralGeoAppException Module Contents --------------- .. py:class:: DuplicateGeoAppException Bases: :py:obj:`rest_framework.exceptions.APIException` .. py:attribute:: status_code :value: 409 .. py:attribute:: default_detail :value: 'GeoApp already exists' .. py:attribute:: default_code :value: 'geoapp_exception' .. py:attribute:: category :value: 'geoapp_api' .. py:class:: InvalidGeoAppException Bases: :py:obj:`rest_framework.exceptions.APIException` .. py:attribute:: status_code :value: 400 .. py:attribute:: default_detail :value: 'The provided data is not valid' .. py:attribute:: default_code :value: 'geoapp_exception' .. py:attribute:: category :value: 'geoapp_api' .. py:class:: GeneralGeoAppException Bases: :py:obj:`rest_framework.exceptions.APIException` .. py:attribute:: status_code :value: 500 .. py:attribute:: default_detail :value: 'An error has occurred while processing your request' .. py:attribute:: default_code :value: 'geoapp_exception' .. py:attribute:: category :value: 'geoapp_api'