public static ExceptionDto ToSerializable(this Exception ex) { return ex == null ? null : new ExceptionDto(ex); }