Class ExceptionFactory
Namespace: Aurigma.DesignAtoms.Exceptions
Assembly: Aurigma.DesignAtoms.Model.dll
Syntax
public static class ExceptionFactory
Inheritance: System.Object -> ExceptionFactory
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseClone
Methods
ItemBelongsCollection
public static ArgumentException ItemBelongsCollection()
Returns
System.ArgumentException
CanvasInLayerCollectionIsNull
public static ArgumentException CanvasInLayerCollectionIsNull()
Returns
System.ArgumentException
LayerInObjectCollectionIsNull
public static ArgumentNullException LayerInObjectCollectionIsNull()
Returns
System.ArgumentNullException
CollectionSetterNotSupported
public static NotSupportedException CollectionSetterNotSupported()
Returns
System.NotSupportedException
BadRequest
public static WebException BadRequest(string url, Exception ex)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | url | |
System.Exception | ex |
Returns
System.Net.WebException
SourceFormat
public static InvalidOperationException SourceFormat(Exception ex)
Parameters
| Type | Name | Description |
|---|---|---|
System.Exception | ex |
Returns
System.InvalidOperationException
DownloadDeny
public static ApplicationException DownloadDeny()
Returns
System.ApplicationException
ImageFileNotFound
public static FileNotFoundException ImageFileNotFound(string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | fileName |
Returns
System.IO.FileNotFoundException
CanNotDownloadImage
public static ApplicationException CanNotDownloadImage(string url, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | url | |
System.Exception | innerException |
Returns
System.ApplicationException
CanNotDrawImageByUrl
public static InvalidOperationException CanNotDrawImageByUrl()
Returns
System.InvalidOperationException
NotSupportedException
public static NotSupportedException NotSupportedException()
Returns
System.NotSupportedException
ArgumentNullException
public static ArgumentNullException ArgumentNullException()
Returns
System.ArgumentNullException
ArgumentOutOfRangeException
public static ArgumentOutOfRangeException ArgumentOutOfRangeException(string paramName)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | paramName |
Returns
System.ArgumentOutOfRangeException
BlendModeNotSupported
public static BlendModeNotSupportedException BlendModeNotSupported(BlendMode psdBlendMode)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.BlendMode | psdBlendMode |
Returns
Aurigma.DesignAtoms.Exceptions.BlendModeNotSupportedException