SynchronousMethodExceptionBehavior Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A BatchClientBehavior which specifies how exceptions should be thrown from synchronous methods.
public class SynchronousMethodExceptionBehavior : Microsoft.Azure.Batch.BatchClientBehavior
type SynchronousMethodExceptionBehavior = class
inherit BatchClientBehavior
Public Class SynchronousMethodExceptionBehavior
Inherits BatchClientBehavior
- Inheritance
Remarks
By default, synchronous methods throw the same exceptions as asynchronous ones. For compatability with versions of the Azure.Batch client prior to 4.0, you can specify the ThrowAggregateException behavior to wrap exceptions thrown from synchronous methods in an AggregateException.
Fields
ThrowAggregateException |
This behavior causes synchronous methods to throw AggregateException on failure. |
Applies to
Azure SDK for .NET