diff --git a/EDIFileLoader.Standard/EDIFileLoader.Core.csproj b/EDIFileLoader.Standard/EDIFileLoader.Core.csproj index 0cf7305..263c724 100644 --- a/EDIFileLoader.Standard/EDIFileLoader.Core.csproj +++ b/EDIFileLoader.Standard/EDIFileLoader.Core.csproj @@ -21,7 +21,13 @@ - + bin\Release\EDIFileLoader.Core.xml + true + + + + bin\Debug\EDIFileLoader.Core.xml + true diff --git a/EDIFileLoader/EDIFileLoader.csproj b/EDIFileLoader/EDIFileLoader.csproj index dc8a4e4..db9bc34 100644 --- a/EDIFileLoader/EDIFileLoader.csproj +++ b/EDIFileLoader/EDIFileLoader.csproj @@ -22,6 +22,16 @@ + + bin\Debug\EDIFileLoader.xml + true + + + + bin\Release\EDIFileLoader.xml + true + + diff --git a/EDILibrary/EDILibrary.csproj b/EDILibrary/EDILibrary.csproj index 63dee7d..2086a77 100644 --- a/EDILibrary/EDILibrary.csproj +++ b/EDILibrary/EDILibrary.csproj @@ -2,6 +2,8 @@ Library + bin\Debug\EDILibrary.xml + true @@ -31,7 +33,8 @@ - + bin\Release\EDILibrary.xml + true diff --git a/EDILibrary/Exceptions/BadFormatException.cs b/EDILibrary/Exceptions/BadFormatException.cs index 1ac71c5..dd99753 100644 --- a/EDILibrary/Exceptions/BadFormatException.cs +++ b/EDILibrary/Exceptions/BadFormatException.cs @@ -1,13 +1,24 @@ -// Copyright (c) 2017 Hochfrequenz Unternehmensberatung GmbH -using System; +using System; namespace EDILibrary.Exceptions { + /// + /// The exception is thrown if the combination of a edifact format and its version is not supported. + /// + /// public class BadFormatException : Exception { - string _format; - string _version; - public override string Message { get { return string.Format("Format {0} in version {1} could not be found", _format, _version); } } + private string _format; + private string _version; + + /// + public override string Message => $"Format {_format} in version {_version} could not be found"; + + /// + /// Initialize the Exception by providing both the (stringly typed) format and the version. + /// + /// + /// public BadFormatException(string format, string version) { _format = format; diff --git a/EDILibrary/Exceptions/BadPIDException.cs b/EDILibrary/Exceptions/BadPIDException.cs index b7dfd2f..8a8918e 100644 --- a/EDILibrary/Exceptions/BadPIDException.cs +++ b/EDILibrary/Exceptions/BadPIDException.cs @@ -1,12 +1,22 @@ -// Copyright (c) 2017 Hochfrequenz Unternehmensberatung GmbH -using System; +using System; namespace EDILibrary.Exceptions { + /// + /// Exception that is thrown if a pruefidentifikator is not known/not supported (yet). + /// + /// public class BadPIDException : Exception { - string _pid; - public override string Message { get { return "Pid " + _pid + " is unknown."; } } + private readonly string _pid; + + /// + public override string Message => "Pid " + _pid + " is unknown."; + + /// + /// Initialize the exception by providing the unsupported prüfidentifikator / message class + /// + /// e.g. "11099" public BadPIDException(string pid) { _pid = pid; diff --git a/EDILibraryBase/EDILibrary.Standard.csproj b/EDILibraryBase/EDILibrary.Standard.csproj index 0ab9ed6..0256c44 100644 --- a/EDILibraryBase/EDILibrary.Standard.csproj +++ b/EDILibraryBase/EDILibrary.Standard.csproj @@ -21,6 +21,16 @@ + + bin\Debug\EDILibrary.Standard.xml + true + + + + bin\Release\EDILibrary.Standard.xml + true + +