#@ template language="C#" inherits="BaseGenerator" #>
<#@ assembly name="System.Core" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="System.Collections.Generic" #>
<#
AddLicenseHeader();
#>
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using Amazon.Runtime;
namespace <#=this.Config.Namespace#>
{
///
/// Common exception for the <#=this.Config.ClassName#> service.
///
#if !NETSTANDARD
[Serializable]
#endif
public partial class Amazon<#=this.Config.ClassName#>Exception : AmazonServiceException
{
///
/// Construct instance of Amazon<#=this.Config.ClassName#>Exception
///
///
public Amazon<#=this.Config.ClassName#>Exception(string message)
: base(message)
{
}
///
/// Construct instance of Amazon<#=this.Config.ClassName#>Exception
///
///
///
public Amazon<#=this.Config.ClassName#>Exception(string message, Exception innerException)
: base(message, innerException)
{
}
///
/// Construct instance of Amazon<#=this.Config.ClassName#>Exception
///
///
public Amazon<#=this.Config.ClassName#>Exception(Exception innerException)
: base(innerException.Message, innerException)
{
}
///
/// Construct instance of Amazon<#=this.Config.ClassName#>Exception
///
///
///
///
///
///
public Amazon<#=this.Config.ClassName#>Exception(string message, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode)
{
}
///
/// Construct instance of Amazon<#=this.Config.ClassName#>Exception
///
///
///
///
///
///
///
public Amazon<#=this.Config.ClassName#>Exception(string message, Exception innerException, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode)
{
}
#if !NETSTANDARD
///
/// Constructs a new instance of the Amazon<#=this.Config.ClassName#>Exception class with serialized data.
///
/// The that holds the serialized object data about the exception being thrown.
/// The that contains contextual information about the source or destination.
/// The parameter is null.
/// The class name is null or is zero (0).
protected Amazon<#=this.Config.ClassName#>Exception(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
#endif
}
}