public static BikeObject CreateClrError(Exception cause) { cause = cause is TargetInvocationException && cause.InnerException != null ? cause.InnerException : cause; return CreateErrorFromType("ClrError", null, cause); }