@@ -75,7 +75,11 @@ class EdgeInfo() {
7575 return str
7676 }
7777 }
78- throw new IllegalArgumentException
78+ throw new IllegalArgumentException (
79+ " adj list type not found: " + AdjListType .AdjListTypeToString (
80+ adj_list_type
81+ )
82+ )
7983 }
8084
8185 /**
@@ -95,7 +99,11 @@ class EdgeInfo() {
9599 return adj_list.getFile_type_in_gar
96100 }
97101 }
98- throw new IllegalArgumentException
102+ throw new IllegalArgumentException (
103+ " adj list type not found: " + AdjListType .AdjListTypeToString (
104+ adj_list_type
105+ )
106+ )
99107 }
100108
101109 /**
@@ -117,7 +125,11 @@ class EdgeInfo() {
117125 return adj_list.getProperty_groups
118126 }
119127 }
120- throw new IllegalArgumentException
128+ throw new IllegalArgumentException (
129+ " adj list type not found: " + AdjListType .AdjListTypeToString (
130+ adj_list_type
131+ )
132+ )
121133 }
122134
123135 /**
@@ -213,10 +225,18 @@ class EdgeInfo() {
213225 return pg
214226 }
215227 }
228+ throw new IllegalArgumentException (
229+ " property group not found: " + property_name + " in adj list type: " + AdjListType
230+ .AdjListTypeToString (
231+ adj_list_type
232+ )
233+ )
216234 }
217235 }
218236 }
219- throw new IllegalArgumentException
237+ throw new IllegalArgumentException (
238+ " adj list type or property group not found."
239+ )
220240 }
221241
222242 /**
@@ -245,7 +265,7 @@ class EdgeInfo() {
245265 }
246266 }
247267 }
248- throw new IllegalArgumentException
268+ throw new IllegalArgumentException ( " property not found: " + property_name)
249269 }
250270
251271 /**
@@ -275,7 +295,7 @@ class EdgeInfo() {
275295 }
276296 }
277297 }
278- throw new IllegalArgumentException
298+ throw new IllegalArgumentException ( " property not found: " + property_name)
279299 }
280300
281301 /** Get Primary key of edge info. */
@@ -337,7 +357,11 @@ class EdgeInfo() {
337357 */
338358 def getVerticesNumFilePath (adj_list_type : AdjListType .Value ): String = {
339359 if (containAdjList(adj_list_type) == false ) {
340- throw new IllegalArgumentException
360+ throw new IllegalArgumentException (
361+ " adj list type not found: " + AdjListType .AdjListTypeToString (
362+ adj_list_type
363+ )
364+ )
341365 }
342366 val str : String = prefix + getAdjListPrefix(adj_list_type) + " vertex_count"
343367 return str
@@ -354,7 +378,11 @@ class EdgeInfo() {
354378 */
355379 def getEdgesNumPathPrefix (adj_list_type : AdjListType .Value ): String = {
356380 if (containAdjList(adj_list_type) == false ) {
357- throw new IllegalArgumentException
381+ throw new IllegalArgumentException (
382+ " adj list type not found: " + AdjListType .AdjListTypeToString (
383+ adj_list_type
384+ )
385+ )
358386 }
359387 val str : String = prefix + getAdjListPrefix(adj_list_type) + " edge_count"
360388 return str
@@ -376,7 +404,11 @@ class EdgeInfo() {
376404 adj_list_type : AdjListType .Value
377405 ): String = {
378406 if (containAdjList(adj_list_type) == false ) {
379- throw new IllegalArgumentException
407+ throw new IllegalArgumentException (
408+ " adj list type not found: " + AdjListType .AdjListTypeToString (
409+ adj_list_type
410+ )
411+ )
380412 }
381413 val str : String = prefix + getAdjListPrefix(adj_list_type) + " edge_count" +
382414 chunk_index.toString()
@@ -400,7 +432,11 @@ class EdgeInfo() {
400432 adj_list_type : AdjListType .Value
401433 ): String = {
402434 if (containAdjList(adj_list_type) == false ) {
403- throw new IllegalArgumentException
435+ throw new IllegalArgumentException (
436+ " adj list type not found: " + AdjListType .AdjListTypeToString (
437+ adj_list_type
438+ )
439+ )
404440 }
405441 val str : String =
406442 prefix + getAdjListPrefix(adj_list_type) + " offset/chunk" +
@@ -419,7 +455,11 @@ class EdgeInfo() {
419455 */
420456 def getOffsetPathPrefix (adj_list_type : AdjListType .Value ): String = {
421457 if (containAdjList(adj_list_type) == false ) {
422- throw new IllegalArgumentException
458+ throw new IllegalArgumentException (
459+ " adj list type not found: " + AdjListType .AdjListTypeToString (
460+ adj_list_type
461+ )
462+ )
423463 }
424464 return prefix + getAdjListPrefix(adj_list_type) + " offset/"
425465 }
@@ -503,7 +543,7 @@ class EdgeInfo() {
503543 chunk_index : Long
504544 ): String = {
505545 if (containPropertyGroup(property_group, adj_list_type) == false )
506- throw new IllegalArgumentException
546+ throw new IllegalArgumentException ( " property group not found. " )
507547 var str : String = property_group.getPrefix
508548 if (str == " " ) {
509549 val properties = property_group.getProperties
@@ -540,7 +580,7 @@ class EdgeInfo() {
540580 vertex_chunk_index : Long
541581 ): String = {
542582 if (containPropertyGroup(property_group, adj_list_type) == false )
543- throw new IllegalArgumentException
583+ throw new IllegalArgumentException ( " property group not found. " )
544584 var str : String = property_group.getPrefix
545585 if (str == " " ) {
546586 val properties = property_group.getProperties
@@ -573,7 +613,7 @@ class EdgeInfo() {
573613 adj_list_type : AdjListType .Value
574614 ): String = {
575615 if (containPropertyGroup(property_group, adj_list_type) == false )
576- throw new IllegalArgumentException
616+ throw new IllegalArgumentException ( " property group not found. " )
577617 var str : String = property_group.getPrefix
578618 if (str == " " ) {
579619 val properties = property_group.getProperties
0 commit comments