-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-System.Netin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is merged
Milestone
Description
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.
KeterSCP, vcsjones, am11, tsandrini, arkadiuszokon and 2 more
Metadata
Metadata
Assignees
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-System.Netin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is merged