Skip to content

Commit

Permalink
Add toString override to error class
Browse files Browse the repository at this point in the history
  • Loading branch information
oozcitak committed Sep 5, 2019
1 parent 89c2d75 commit dc73689
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ExifLibrary/ImageError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,14 @@ public ImageError(Severity severity, string message)
Severity = severity;
Message = message;
}

/// <summary>
/// Returns a string that represents the current object.
/// </summary>
/// <returns></returns>
public override string ToString()
{
return Message;
}
}
}

0 comments on commit dc73689

Please sign in to comment.