Class PublishException
Thrown when an error occurs during publishing
Inheritance
System.Object
System.Exception
PublishException
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
Namespace:Cake.ClickTwice
Assembly:Cake.ClickTwice.dll
Syntax
public class PublishException : Exception, ISerializable, _Exception
Constructors
| Improve this Doc View SourcePublishException(IEnumerable<HandlerResponse>)
Create a new PublishException exception with the given handler responses
Declaration
public PublishException(IEnumerable<HandlerResponse> responses)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<HandlerResponse> | responses | The responses from the handlers collection that threw the exception |
PublishException(IEnumerable<HandlerResponse>, String)
Create a new PublishException exception with the given text and handler responses
Declaration
public PublishException(IEnumerable<HandlerResponse> responses, string message)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<HandlerResponse> | responses | The responses from the handlers collection that threw the exception |
System.String | message | The message to return to the user |
PublishException(SerializationInfo, StreamingContext)
Declaration
protected PublishException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |
PublishException(String)
Create a new PublishException exception with the given text
Declaration
public PublishException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message to return to the user |
PublishException(String, Exception)
Create a new PublishException exception with the given text and inner exception
Declaration
public PublishException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message to return to the user |
System.Exception | innerException | The inner exception |
Properties
| Improve this Doc View SourceErrors
Collection of responses from the handlers that threw the exception
Declaration
public IEnumerable<HandlerResponse> Errors { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<HandlerResponse> |