Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 7f517c28 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

CodeAnalysis: Suppressed Unexpected Exception Location in Properties

parent 210faa03
No related branches found
No related tags found
No related merge requests found
...@@ -75,6 +75,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON ...@@ -75,6 +75,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON
public virtual double Ratio public virtual double Ratio
{ {
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
get get
{ {
var gears = Body.GetEx(JsonKeys.Gearbox_Gears); var gears = Body.GetEx(JsonKeys.Gearbox_Gears);
...@@ -87,6 +88,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON ...@@ -87,6 +88,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON
public DataTable LossMap public DataTable LossMap
{ {
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
get get
{ {
var gears = Body.GetEx(JsonKeys.Gearbox_Gears); var gears = Body.GetEx(JsonKeys.Gearbox_Gears);
......
...@@ -265,6 +265,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON ...@@ -265,6 +265,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON
public virtual IVehicleEngineeringInputData VehicleInputData public virtual IVehicleEngineeringInputData VehicleInputData
{ {
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
get get
{ {
if (VehicleData == null) { if (VehicleData == null) {
...@@ -276,6 +277,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON ...@@ -276,6 +277,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON
public virtual IGearboxEngineeringInputData GearboxInputData public virtual IGearboxEngineeringInputData GearboxInputData
{ {
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
get get
{ {
if (Gearbox == null) { if (Gearbox == null) {
...@@ -287,6 +289,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON ...@@ -287,6 +289,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON
public virtual IAxleGearInputData AxleGearInputData public virtual IAxleGearInputData AxleGearInputData
{ {
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
get get
{ {
if (AxleGear == null) { if (AxleGear == null) {
...@@ -303,6 +306,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON ...@@ -303,6 +306,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON
public virtual IEngineEngineeringInputData EngineInputData public virtual IEngineEngineeringInputData EngineInputData
{ {
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
get get
{ {
if (Engine == null) { if (Engine == null) {
...@@ -329,6 +333,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON ...@@ -329,6 +333,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON
public virtual IRetarderInputData RetarderInputData public virtual IRetarderInputData RetarderInputData
{ {
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
get get
{ {
if (Retarder == null) { if (Retarder == null) {
...@@ -354,6 +359,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON ...@@ -354,6 +359,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON
public virtual IList<ICycleData> Cycles public virtual IList<ICycleData> Cycles
{ {
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
get get
{ {
var retVal = new List<ICycleData>(); var retVal = new List<ICycleData>();
...@@ -461,6 +467,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON ...@@ -461,6 +467,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON
public virtual DataTable AccelerationCurve public virtual DataTable AccelerationCurve
{ {
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
get get
{ {
var acceleration = Body[JsonKeys.DriverData_AccelerationCurve]; var acceleration = Body[JsonKeys.DriverData_AccelerationCurve];
......
...@@ -92,6 +92,7 @@ namespace TUGraz.VectoCore.InputData.Impl ...@@ -92,6 +92,7 @@ namespace TUGraz.VectoCore.InputData.Impl
public class AxleInputData : IAxleEngineeringInputData public class AxleInputData : IAxleEngineeringInputData
{ {
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
public bool SavedInDeclarationMode public bool SavedInDeclarationMode
{ {
get {throw new System.NotImplementedException(); } get {throw new System.NotImplementedException(); }
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq; using System.Linq;
using TUGraz.VectoCommon.Exceptions; using TUGraz.VectoCommon.Exceptions;
using TUGraz.VectoCommon.Models; using TUGraz.VectoCommon.Models;
...@@ -75,6 +74,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl ...@@ -75,6 +74,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
public uint Gear public uint Gear
{ {
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
get get
{ {
if (Gearbox == null) { if (Gearbox == null) {
...@@ -84,9 +84,9 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl ...@@ -84,9 +84,9 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
} }
} }
[DebuggerHidden]
public MeterPerSecond StartSpeed public MeterPerSecond StartSpeed
{ {
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
get get
{ {
if (Gearbox == null) { if (Gearbox == null) {
...@@ -96,9 +96,9 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl ...@@ -96,9 +96,9 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
} }
} }
[DebuggerHidden]
public MeterPerSquareSecond StartAcceleration public MeterPerSquareSecond StartAcceleration
{ {
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
get get
{ {
if (Gearbox == null) { if (Gearbox == null) {
...@@ -119,6 +119,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl ...@@ -119,6 +119,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
public PerSecond EngineSpeed public PerSecond EngineSpeed
{ {
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
get get
{ {
if (Engine == null) { if (Engine == null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment