super(Preconditions.checkNotNull(message), cause);
if (errors != null && errors.length > 0) {
- errorList = ImmutableList.copyOf( Arrays.asList( errors ) );
+ errorList = ImmutableList.copyOf(Arrays.asList(errors));
} else {
// Add a default RpcError.
errorList = ImmutableList.of(RpcResultBuilder.newError(ErrorType.APPLICATION, null,
@Override
public String toString() {
- return MoreObjects.toStringHelper( this ).add( "message", getMessage() )
- .add( "errorList", errorList ).toString();
+ return MoreObjects.toStringHelper(this).add("message", getMessage())
+ .add("errorList", errorList).toString();
}
}