T
- the token typepublic static class ErrorResult.ErrorResultBuilder<T extends IToken>
extends java.lang.Object
Constructor and Description |
---|
ErrorResultBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addDetail(IErrorResult<T> result)
Adds the specified error detail to this builder
|
IErrorResult<T> |
create()
Creates a new error result, or throws an exception if it cannot
create a valid result.
|
public void addDetail(IErrorResult<T> result)
result
- the detail to be added to the error result builderjava.lang.NullPointerException
- if the specified result is null
public IErrorResult<T> create()
Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.