syntax = "proto2";

package maps_adv.warden.proto.errors;

import "google/protobuf/timestamp.proto";

message Error {
    enum ERROR_CODE {
        TOO_EARLY_FOR_NEW_TASK_OF_REQUESTED_TYPE = 1;
        CONFLICT = 2;
        STATUS_SEQUENCE_VIOLATION = 3;
        TASK_IN_PROGRESS_BY_ANOTHER_EXECUTOR = 4;
        TASK_TYPE_ALREADY_ASSIGNED = 5;
        UNKNOWN_TASK_OR_TYPE = 6;
        UPDATE_STATUS_TO_INITIAL = 7;
        EXECUTOR_ID_ALREADY_USED = 8;
        VALIDATION_ERROR = 1000;
    }
    required ERROR_CODE code = 1;
    optional string description = 2;
    optional google.protobuf.Timestamp scheduled_time = 3;
}
