public static Failure copy ( Failure failure ) { if ( failure == null ) { return null ; } Failure result = new Failure ( ) ; result . code = failure . code ; result . details = failure . details ; result . title = failure . title ; return result ; }
Creates a new copy of failure descriptor .