Azure / autorest.az

Azure CLI Code Generator
MIT License
22 stars 20 forks source link

Cannot config `exception_handler` property for commands #801

Closed kairu-ms closed 3 years ago

kairu-ms commented 3 years ago

Why do you need this feature?

We need to customize exception_handler of command.

Is your feature request related to a problem? Please describe.

Cannot config exception_handler property like this

g.custom_command('validate', 'validate_arm_template', exception_handler=handle_template_based_exception)

Describe the solution you'd like

Describe alternatives you've considered

Additional context

jsntcy commented 3 years ago

https://github.com/Azure/autorest.az/issues/789

qiaozha commented 3 years ago

find the solution here https://github.com/Azure/autorest.az/issues/789#issuecomment-809187026

changlong-liu commented 3 years ago

merged