syntax = "proto2";

package maps_adv.points.proto.errors;

message Error {
    enum ERROR_CODE {
        COLLECTION_NOT_FOUND = 1;
        NON_CLOSED_POLYGON = 2;
        INVALID_POLYGON = 3;
        NO_POLYGONS_PASSED = 4;
        INVALID_VERSION = 5;
        NO_POINTS_PASSED = 6;
        VALIDATION_ERROR = 1000;
    }
    required ERROR_CODE code = 1;
    optional string description = 2;
}
