Class TemporaryConversionException
Use this exception to indicate that we have a temporary problem with the conversion process
Inheritance
Implements
Inherited Members
Namespace: ImageVault.Core.Common.Conversion
Assembly: ImageVault.Core.dll
Syntax
public class TemporaryConversionException : Exception, ISerializable, _Exception
Remarks
Usage of this exception indicates that we can try the conversion process again after some time and the exception can provide TemporaryContent to use instead of the requested one. 2011-03-30 dan: Created
Constructors
TemporaryConversionException()
Initializes a new instance of the TemporaryConversionException class.
Declaration
public TemporaryConversionException()
TemporaryConversionException(String)
Initializes a new instance of the TemporaryConversionException class with a specified error message.
Declaration
public TemporaryConversionException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | a message that describes the exception |
TemporaryConversionException(String, Exception)
Initializes a new instance of the TemporaryConversionException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public TemporaryConversionException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | a message that describes the exception |
System.Exception | innerException | The exception that caused this exception |
TemporaryConversionException(String, Object[])
Initializes a new instance of the TemporaryConversionException class with a specified formatted error message. ///
Declaration
public TemporaryConversionException(string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | A System.String containing zero or more format items. |
System.Object[] | args | An System.Object array containing zero or more objects to format. |
Properties
RetryAfter
The number of seconds to wait until retrying the operation
Declaration
public int RetryAfter { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | Default value is 5. A negative value will instruct the recipient to not retry after a specific amount of time |
TemporaryContent
Get/Sets the TemporaryContent of the TemporaryConversionException
Declaration
public MediaContent TemporaryContent { get; set; }
Property Value
Type | Description |
---|---|
MediaContent | Defines the temporary content to use instead of the real one |