public static Builder error(String errorCode) {
		Assert.hasText(errorCode, "errorCode cannot be empty");
		return new Builder().errorCode(errorCode);
	}
public static Builder error(String errorCode) {
		Assert.hasText(errorCode, "errorCode cannot be empty");
		return new Builder().errorCode(errorCode);
	}
public static Builder error ( String errorCode ) { Assert . hasText ( errorCode , "errorCode cannot be empty" ) ; return new Builder ( ) . errorCode ( errorCode ) ; }
Returns a new {@link Builder}, initialized with the error code.

@param errorCode the error code
@return the {@link Builder}
Returns a new { @link Builder } initialized with the error code .