using System; using System.Collections.Generic; using System.Text; namespace InABox.Core { namespace Postable { public class EmptyPostException : Exception { public EmptyPostException() { } } public class PostFailedMessageException : Exception { public PostFailedMessageException(string message): base(message) { } } public class MissingSettingsException : Exception { public Type PostableType { get; } public MissingSettingsException(Type postableType) : base($"No PostableSettings for ${postableType}") { PostableType = postableType; } } public class RepostedException : Exception { public RepostedException() : base("Cannot process an item twice.") { } } public class PostCancelledException : Exception { public PostCancelledException() : base("Processing cancelled") { } } } }