Add a new state ElementState.Warning
Merge pull request #1260 from ke-yu/error_handling

Add a new state ElementState.Warning