Background and motivation
CDD - Cookie Driven Development
API Proposal
namespace System.Net
{
[Serializable]
[...]
public class CookieException : FormatException, ISerializable
{
public CookieException() : base()
{
}
// Please make this public
public CookieException(string? message) : base(message)
{
}
Please change access modifier for ctor with string? to public.
API Usage
throw new CookieException("🥮");
throw new CookieException("🍥");
throw new CookieException("🍪");
throw new CookieException("🍩");
throw new CookieException("🍰");
Alternative Designs
Alternatively make it protected, so I still can initialize CookieException with particular cookie.
Risks
Instance of CookieMonster may appear unexpectedly.
Background and motivation
CDD - Cookie Driven Development
API Proposal
Please change access modifier for ctor with string? to public.
API Usage
Alternative Designs
Alternatively make it protected, so I still can initialize CookieException with particular cookie.
Risks
Instance of CookieMonster may appear unexpectedly.