Uploaded image for project: 'Etch'
  1. Etch
  2. ETCH-167

@ToString directive applied to exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 1.1
    • None
    • binding-csharp
    • None

    Description

      when using @ToString directive on an exception with no arguments

      @ToString("Invalid user name or password")
      exception AuthenticationException()

      generated C# method in exception class code doesn't surround the message with apostrophes thus can't be built.

      public new String GetMessage()
      {
      return Invalid user name or password;
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            miksovic Michal Miksovic
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: