Skip to content

Allow non-"formatted" friendly message for WebException (mtc900) #6

@mikeobrien

Description

@mikeobrien

There is a need to submit a raw friendly message that is not string.formattable. To do so, please add another constructor:

public WebException(HttpStatusCode status, string friendyMessage) :
base(friendyMessage)
{
Status = status;
}

Therefore, if there are no parameters, the string.format() method is never called and the friendly message can contain any combination of braces such as JavaScript code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions