Exemplo n.º 1
0
 public static void Check(bool condition, AttributeError attributeError)
 {
     if (condition != true)
     {
         throw new AttributeException(attributeError);
     }
 }
Exemplo n.º 2
0
 public AttributeException(AttributeError attributeError)
     : base($"Fail to get attribute. {nameof(AttributeError)} : {attributeError}")
 {
     AttributeError = attributeError;
 }