Skip to content
This repository was archived by the owner on Jul 24, 2022. It is now read-only.

Public exception follows .NET guidelines#11

Merged
Maxwe11 merged 2 commits intoNModbus4:masterfrom
breyed:conventional-exception
Mar 4, 2015
Merged

Public exception follows .NET guidelines#11
Maxwe11 merged 2 commits intoNModbus4:masterfrom
breyed:conventional-exception

Conversation

@breyed
Copy link
Contributor

@breyed breyed commented Mar 4, 2015

Added additional constructors to InvalidModbusRequestException per .NET guidelines. The primary advantage is to allow users to supply an inner exception for their own purposes.

Added additional constructors to InvalidModbusRequestException per .NET
guidelines. The primary advantage is to allow users to supply an inner
exception for their own purposes.
@Maxwe11
Copy link
Member

Maxwe11 commented Mar 4, 2015

LGTM but if you add Serializable attribute GetObjectData also should be implemented, isn't it?
Like it was done for SlaveException https://github.com/Maxwe11/NModbus4/blob/master/NModbus4/SlaveException.cs#L153

@breyed
Copy link
Contributor Author

breyed commented Mar 4, 2015

Good catch. Fixed. I didn't change SlaveException.GetObjectData, but its null checks should be removed, since the base class method takes care of null checking.

@Maxwe11
Copy link
Member

Maxwe11 commented Mar 4, 2015

LGTM. Thanks

Maxwe11 added a commit that referenced this pull request Mar 4, 2015
Public exception follows .NET guidelines
@Maxwe11 Maxwe11 merged commit 45d7a59 into NModbus4:master Mar 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants