-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy patherrors.py
More file actions
25 lines (20 loc) · 1.14 KB
/
errors.py
File metadata and controls
25 lines (20 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
from .models import BatchErrorException
class MissingParameterValue(ValueError):
def __init__(self, message, parameter_name=None, parameter_description=None):
self.parameter_name = parameter_name
self.parameter_description = parameter_description
super(MissingParameterValue, self).__init__(message)
class CreateTasksErrorException(BatchErrorException):
"""
:param str message: Error message describing exit reason
:param [~TaskAddResult] failures: List of tasks with detected client side errors.
:param [~TaskAddParameter] pending_task_list: List of tasks remaining to be submitted.
"""
def __init__(self, message, failures, pending_task_list):
self.message = message
self.failures = list(failures)
self.pending_tasks = list(pending_task_list)