BHoM / BHoM/BHoM_Engine

Facade_Engine: Error handling for MaterialComposition

Open
#2,771 0 comments 0 reactions 1 assignee Claimed by @enarhi View on GitHub
type:bug
Dominant language
C#
Stars
30
Forks
13
Avg merge
7d 10h
Merged PRs (30d)
5

Description

#### Description:
Currently MaterialComposition can fail with an exception if certain invalid elements are created, such as an opening with no edges. We need improved error handling to handle these cases with useful error messages.

#### Steps to reproduce:
As below:
![image](https://user-images.githubusercontent.com/6752345/157500721-282f18cf-b066-4e83-a359-00e9586d90b0.png)

#### Expected behaviour:
An error reporting the cause, such as "MaterialComposition can not be calculated for an Opening with no external edges."

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.