Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Unified Diff: recipe_engine/result_pb2.py

Issue 2798053003: introduce recipe_exception in result.proto (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « recipe_engine/result.proto ('k') | recipe_engine/run.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_engine/result_pb2.py
diff --git a/recipe_engine/result_pb2.py b/recipe_engine/result_pb2.py
index aa7c9ce62261a8c0d9b31d5592a1f72fb83fb664..8853ebaddbb6509150c9c351e051a839f2ff2131 100644
--- a/recipe_engine/result_pb2.py
+++ b/recipe_engine/result_pb2.py
@@ -20,7 +20,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
name='result.proto',
package='recipe_engine',
syntax='proto3',
- serialized_pb=_b('\n\x0cresult.proto\x12\rrecipe_engine\x1a\rpackage.proto\"\x8a\x01\n\x06Result\x12\x15\n\x0bjson_result\x18\x01 \x01(\tH\x00\x12)\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32\x16.recipe_engine.FailureH\x00\x12.\n\x0erecipe_package\x18\x03 \x01(\x0b\x32\x16.recipe_engine.PackageB\x0e\n\x0coneof_result\"\xe6\x01\n\x07\x46\x61ilure\x12\x14\n\x0chuman_reason\x18\x01 \x01(\t\x12)\n\x07timeout\x18\x02 \x01(\x0b\x32\x16.recipe_engine.TimeoutH\x00\x12-\n\texception\x18\x03 \x01(\x0b\x32\x18.recipe_engine.ExceptionH\x00\x12,\n\tstep_data\x18\x04 \x01(\x0b\x32\x17.recipe_engine.StepDataH\x00\x12-\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32\x1a.recipe_engine.StepFailureH\x00\x42\x0e\n\x0c\x66\x61ilure_type\"\x1e\n\tException\x12\x11\n\ttraceback\x18\x01 \x03(\t\"\x1c\n\x07Timeout\x12\x11\n\ttimeout_s\x18\x01 \x01(\x02\"\x18\n\x08StepData\x12\x0c\n\x04step\x18\x01 \x01(\t\"\x1b\n\x0bStepFailure\x12\x0c\n\x04step\x18\x01 \x01(\tb\x06proto3')
+ serialized_pb=_b('\n\x0cresult.proto\x12\rrecipe_engine\x1a\rpackage.proto\"\x8a\x01\n\x06Result\x12\x15\n\x0bjson_result\x18\x01 \x01(\tH\x00\x12)\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32\x16.recipe_engine.FailureH\x00\x12.\n\x0erecipe_package\x18\x03 \x01(\x0b\x32\x16.recipe_engine.PackageB\x0e\n\x0coneof_result\"\xa2\x02\n\x07\x46\x61ilure\x12\x14\n\x0chuman_reason\x18\x01 \x01(\t\x12)\n\x07timeout\x18\x02 \x01(\x0b\x32\x16.recipe_engine.TimeoutH\x00\x12-\n\texception\x18\x03 \x01(\x0b\x32\x18.recipe_engine.ExceptionH\x00\x12:\n\x10recipe_exception\x18\x06 \x01(\x0b\x32\x1e.recipe_engine.RecipeExceptionH\x00\x12,\n\tstep_data\x18\x04 \x01(\x0b\x32\x17.recipe_engine.StepDataH\x00\x12-\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32\x1a.recipe_engine.StepFailureH\x00\x42\x0e\n\x0c\x66\x61ilure_type\"\x1e\n\tException\x12\x11\n\ttraceback\x18\x01 \x03(\t\"$\n\x0fRecipeException\x12\x11\n\ttraceback\x18\x01 \x03(\t\"\x1c\n\x07Timeout\x12\x11\n\ttimeout_s\x18\x01 \x01(\x02\"\x18\n\x08StepData\x12\x0c\n\x04step\x18\x01 \x01(\t\"\x1b\n\x0bStepFailure\x12\x0c\n\x04step\x18\x01 \x01(\tb\x06proto3')
,
dependencies=[package__pb2.DESCRIPTOR,])
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
@@ -105,14 +105,21 @@ _FAILURE = _descriptor.Descriptor(
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
- name='step_data', full_name='recipe_engine.Failure.step_data', index=3,
+ name='recipe_exception', full_name='recipe_engine.Failure.recipe_exception', index=3,
+ number=6, type=11, cpp_type=10, label=1,
+ has_default_value=False, default_value=None,
+ message_type=None, enum_type=None, containing_type=None,
+ is_extension=False, extension_scope=None,
+ options=None),
+ _descriptor.FieldDescriptor(
+ name='step_data', full_name='recipe_engine.Failure.step_data', index=4,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
- name='failure', full_name='recipe_engine.Failure.failure', index=4,
+ name='failure', full_name='recipe_engine.Failure.failure', index=5,
number=5, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
@@ -134,7 +141,7 @@ _FAILURE = _descriptor.Descriptor(
index=0, containing_type=None, fields=[]),
],
serialized_start=188,
- serialized_end=418,
+ serialized_end=478,
)
@@ -164,8 +171,39 @@ _EXCEPTION = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
- serialized_start=420,
- serialized_end=450,
+ serialized_start=480,
+ serialized_end=510,
+)
+
+
+_RECIPEEXCEPTION = _descriptor.Descriptor(
+ name='RecipeException',
+ full_name='recipe_engine.RecipeException',
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[
+ _descriptor.FieldDescriptor(
+ name='traceback', full_name='recipe_engine.RecipeException.traceback', index=0,
+ number=1, type=9, cpp_type=9, label=3,
+ has_default_value=False, default_value=[],
+ message_type=None, enum_type=None, containing_type=None,
+ is_extension=False, extension_scope=None,
+ options=None),
+ ],
+ extensions=[
+ ],
+ nested_types=[],
+ enum_types=[
+ ],
+ options=None,
+ is_extendable=False,
+ syntax='proto3',
+ extension_ranges=[],
+ oneofs=[
+ ],
+ serialized_start=512,
+ serialized_end=548,
)
@@ -195,8 +233,8 @@ _TIMEOUT = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
- serialized_start=452,
- serialized_end=480,
+ serialized_start=550,
+ serialized_end=578,
)
@@ -226,8 +264,8 @@ _STEPDATA = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
- serialized_start=482,
- serialized_end=506,
+ serialized_start=580,
+ serialized_end=604,
)
@@ -257,8 +295,8 @@ _STEPFAILURE = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
- serialized_start=508,
- serialized_end=535,
+ serialized_start=606,
+ serialized_end=633,
)
_RESULT.fields_by_name['failure'].message_type = _FAILURE
@@ -271,6 +309,7 @@ _RESULT.oneofs_by_name['oneof_result'].fields.append(
_RESULT.fields_by_name['failure'].containing_oneof = _RESULT.oneofs_by_name['oneof_result']
_FAILURE.fields_by_name['timeout'].message_type = _TIMEOUT
_FAILURE.fields_by_name['exception'].message_type = _EXCEPTION
+_FAILURE.fields_by_name['recipe_exception'].message_type = _RECIPEEXCEPTION
_FAILURE.fields_by_name['step_data'].message_type = _STEPDATA
_FAILURE.fields_by_name['failure'].message_type = _STEPFAILURE
_FAILURE.oneofs_by_name['failure_type'].fields.append(
@@ -280,6 +319,9 @@ _FAILURE.oneofs_by_name['failure_type'].fields.append(
_FAILURE.fields_by_name['exception'])
_FAILURE.fields_by_name['exception'].containing_oneof = _FAILURE.oneofs_by_name['failure_type']
_FAILURE.oneofs_by_name['failure_type'].fields.append(
+ _FAILURE.fields_by_name['recipe_exception'])
+_FAILURE.fields_by_name['recipe_exception'].containing_oneof = _FAILURE.oneofs_by_name['failure_type']
+_FAILURE.oneofs_by_name['failure_type'].fields.append(
_FAILURE.fields_by_name['step_data'])
_FAILURE.fields_by_name['step_data'].containing_oneof = _FAILURE.oneofs_by_name['failure_type']
_FAILURE.oneofs_by_name['failure_type'].fields.append(
@@ -288,6 +330,7 @@ _FAILURE.fields_by_name['failure'].containing_oneof = _FAILURE.oneofs_by_name['f
DESCRIPTOR.message_types_by_name['Result'] = _RESULT
DESCRIPTOR.message_types_by_name['Failure'] = _FAILURE
DESCRIPTOR.message_types_by_name['Exception'] = _EXCEPTION
+DESCRIPTOR.message_types_by_name['RecipeException'] = _RECIPEEXCEPTION
DESCRIPTOR.message_types_by_name['Timeout'] = _TIMEOUT
DESCRIPTOR.message_types_by_name['StepData'] = _STEPDATA
DESCRIPTOR.message_types_by_name['StepFailure'] = _STEPFAILURE
@@ -313,6 +356,13 @@ Exception = _reflection.GeneratedProtocolMessageType('Exception', (_message.Mess
))
_sym_db.RegisterMessage(Exception)
+RecipeException = _reflection.GeneratedProtocolMessageType('RecipeException', (_message.Message,), dict(
+ DESCRIPTOR = _RECIPEEXCEPTION,
+ __module__ = 'result_pb2'
+ # @@protoc_insertion_point(class_scope:recipe_engine.RecipeException)
+ ))
+_sym_db.RegisterMessage(RecipeException)
+
Timeout = _reflection.GeneratedProtocolMessageType('Timeout', (_message.Message,), dict(
DESCRIPTOR = _TIMEOUT,
__module__ = 'result_pb2'
« no previous file with comments | « recipe_engine/result.proto ('k') | recipe_engine/run.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698