SynchronousMethodExceptionBehavior Class

Definition

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
SynchronousMethodExceptionBehavior

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