Skip to content

Improve handling of Exception<T> where T : struct #83

@niemyjski

Description

@niemyjski

@corneliutusnea commented on Wed Aug 12 2015

We use an Exception which gets rendered a bit oddly in the UI.
public class CustomException : ApplicationException
where T : struct
We use this so we can use enums instead of strings for error messages that are then easy to group in "buckets" or localize.

The the EL UI they get rendered as:
My.Custom.Namespace..CustomException`1[[Some.Long.Name.Space.ErrorCategory_ErrorBucket, Long.AssemblyName., Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

EL should understand such exceptions and render them as:
CustomException<ErrorCategory_ErrorBucket>


@niemyjski commented on Thu Aug 13 2015

Yeah, I agree this should use the namespace+typename and not the assembly full name.


@niemyjski commented on Thu Aug 13 2015

It also looks like the grids are having issues with these type names too.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions