WIP
This commit is contained in:
16
EDIDocumentImport/FormHelpers.vb
Normal file
16
EDIDocumentImport/FormHelpers.vb
Normal file
@@ -0,0 +1,16 @@
|
||||
Imports DigitalData.Modules.Logging
|
||||
|
||||
Public Class Message
|
||||
Private Logger As Logger
|
||||
|
||||
Public Sub New(pLogConfig As LogConfig)
|
||||
Logger = pLogConfig.GetLogger()
|
||||
End Sub
|
||||
|
||||
Public Sub [Error](pException As Exception, pMessage As String)
|
||||
Logger.Error(pException)
|
||||
Dim oMessage As String = $"{pMessage}{vbNewLine}{vbNewLine}{pException.Message}"
|
||||
MsgBox(oMessage, MsgBoxStyle.Critical, "Schwerwiegender Fehler")
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
Reference in New Issue
Block a user