protected SessionStateException(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     this._itemName             = string.Empty;
     this._errorId              = "SessionStateException";
     this._errorCategory        = ErrorCategory.InvalidArgument;
     this._sessionStateCategory = (System.Management.Automation.SessionStateCategory)info.GetInt32("SessionStateCategory");
 }
Esempio n. 2
0
 protected SessionStateException(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     this._itemName = string.Empty;
     this._errorId = "SessionStateException";
     this._errorCategory = ErrorCategory.InvalidArgument;
     this._sessionStateCategory = (System.Management.Automation.SessionStateCategory) info.GetInt32("SessionStateCategory");
 }
 internal SessionStateException(string itemName, System.Management.Automation.SessionStateCategory sessionStateCategory, string errorIdAndResourceId, string resourceStr, ErrorCategory errorCategory, params object[] messageArgs) : base(BuildMessage(itemName, errorIdAndResourceId, resourceStr, messageArgs))
 {
     this._itemName             = string.Empty;
     this._errorId              = "SessionStateException";
     this._errorCategory        = ErrorCategory.InvalidArgument;
     this._itemName             = itemName;
     this._sessionStateCategory = sessionStateCategory;
     this._errorId              = errorIdAndResourceId;
     this._errorCategory        = errorCategory;
 }
Esempio n. 4
0
 internal SessionStateException(string itemName, System.Management.Automation.SessionStateCategory sessionStateCategory, string errorIdAndResourceId, string resourceStr, ErrorCategory errorCategory, params object[] messageArgs) : base(BuildMessage(itemName, errorIdAndResourceId, resourceStr, messageArgs))
 {
     this._itemName = string.Empty;
     this._errorId = "SessionStateException";
     this._errorCategory = ErrorCategory.InvalidArgument;
     this._itemName = itemName;
     this._sessionStateCategory = sessionStateCategory;
     this._errorId = errorIdAndResourceId;
     this._errorCategory = errorCategory;
 }