public List < ErrorDetail > getErrorDetails ( ) { List < ErrorDetail > result = new ArrayList < ErrorDetail > ( ) ; List < ErrorDetailType > errorDetailTypes = getContent ( ) . getErrorDetails ( ) ; if ( errorDetailTypes != null ) { for ( ErrorDetailType errorDetailType : errorDetailTypes ) { ErrorDetail errorDetail = new ErrorDetail ( errorDetailType . getCode ( ) , errorDetailType . getMessage ( ) ) ; result . add ( errorDetail ) ; } return result ; } return null ; }
Gets the error details .