// ------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version: 17.0.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
// ------------------------------------------------------------------------------
namespace ServiceClientGenerator.Generators.SourceFiles.Exceptions
{
using System.Linq;
using System.Text;
using System.Collections.Generic;
using System;
///
/// Class to produce the template output
///
#line 1 "C:\Dev\Repos\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\Exceptions\EventStreamExceptions.tt"
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")]
public partial class EventStreamExceptions : BaseGenerator
{
#line hidden
///
/// Create the template output
///
public override string TransformText()
{
this.Write("\r\nusing Amazon.Runtime.EventStreams.Internal;\r\nusing System;\r\n\r\nnamespace ");
#line 10 "C:\Dev\Repos\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\Exceptions\EventStreamExceptions.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.Namespace));
#line default
#line hidden
this.Write(@"
{
///
/// Modeled Exception that either comes over the stream from the service model, or wraps other exceptions for the purpose of raising events. If it is
/// modelled, it will be a subclass.
///
#if !NETSTANDARD
[Serializable]
#endif
public class ");
#line 19 "C:\Dev\Repos\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\Exceptions\EventStreamExceptions.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName));
#line default
#line hidden
this.Write("EventStreamException : EventStreamException\r\n\t{\r\n\t\t/// \r\n /// Cre" +
"ates a new ");
#line 22 "C:\Dev\Repos\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\Exceptions\EventStreamExceptions.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName));
#line default
#line hidden
this.Write("EventStreamException\r\n /// \r\n\t\tpublic ");
#line 24 "C:\Dev\Repos\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\Exceptions\EventStreamExceptions.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName));
#line default
#line hidden
this.Write("EventStreamException()\r\n\t\t{\r\n\t\t}\r\n\r\n\t\t/// \r\n /// Creates a new ");
#line 29 "C:\Dev\Repos\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\Exceptions\EventStreamExceptions.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName));
#line default
#line hidden
this.Write("EventStreamException\r\n /// \r\n /// <" +
"/param>\r\n\r\n\t\tpublic ");
#line 33 "C:\Dev\Repos\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\Exceptions\EventStreamExceptions.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName));
#line default
#line hidden
this.Write("EventStreamException(string message) : base (message)\r\n\t\t{\r\n\t\t}\r\n\r\n /// \r\n /// Creates a new ");
#line 38 "C:\Dev\Repos\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\Exceptions\EventStreamExceptions.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName));
#line default
#line hidden
this.Write("EventStreamException\r\n /// \r\n /// <" +
"/param>\r\n /// \r\n\t\tpublic ");
#line 42 "C:\Dev\Repos\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\Exceptions\EventStreamExceptions.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName));
#line default
#line hidden
this.Write("EventStreamException(string message, Exception innerException) : base(message, in" +
"nerException)\r\n\t\t{\r\n\t\t}\r\n#if !NETSTANDARD\r\n /// \r\n /// Co" +
"nstructs a new instance of the ");
#line 47 "C:\Dev\Repos\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\Exceptions\EventStreamExceptions.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName));
#line default
#line hidden
this.Write(@"EventStreamException 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 ");
#line 53 "C:\Dev\Repos\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\Exceptions\EventStreamExceptions.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.ClassName));
#line default
#line hidden
this.Write("EventStreamException(System.Runtime.Serialization.SerializationInfo info, System." +
"Runtime.Serialization.StreamingContext context)\r\n : base(info, contex" +
"t)\r\n {\r\n }\r\n#endif\r\n\t}\r\n}\r\n\r\n");
return this.GenerationEnvironment.ToString();
}
}
#line default
#line hidden
}