@ NotNull public static JSONAPIDocument < ? > createErrorDocument ( Iterable < ? extends Error > errors ) { JSONAPIDocument < ? > result = new JSONAPIDocument ( ) ; result . errors = errors ; return result ; }
Factory method for creating JSONAPIDocument that holds the Error object .