Skip to content

Commit

Permalink
Change exception message to include given input parameter value (#653)
Browse files Browse the repository at this point in the history
* Change exception message

* Change exception type
  • Loading branch information
SandGrainOne authored Jan 23, 2024
1 parent 57e1d15 commit 9a6dcaf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ private static string ConvertDataType(XacmlJsonAttribute jsonAttribute)
case XacmlConstants.DataTypes.XMLInteger:
return XacmlConstants.DataTypes.XMLInteger;
default:
throw new Exception("Not supported");
throw new ArgumentException($"Given data type; {jsonAttribute.DataType}, is not supported.", nameof(jsonAttribute));
}
}
}
Expand Down

0 comments on commit 9a6dcaf

Please sign in to comment.