com.aegisql.util.function.EvalStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ftry Show documentation
Show all versions of ftry Show documentation
Functional wrapper for try-catch-finally
The newest version!
/*
*Copyright (c) 2015, AEGIS DATA SOLUTIONS, All rights reserved.
*/
package com.aegisql.util.function;
// TODO: Auto-generated Javadoc
/**
* The Class EvalStatus.
* @author Mikhail Teplitskiy
*/
public final class EvalStatus extends Result {
/**
* Instantiates a new eval status.
*
* @param t the t
*/
public EvalStatus(Boolean t) {
super(t,null);
}
/**
* Instantiates a new eval status.
*
* @param t the t
*/
public EvalStatus(Throwable t) {
super(false,t);
}
/**
* Success.
*
* @return true, if successful
*/
public boolean success() {
return res;
}
/* (non-Javadoc)
* @see com.aegisql.util.function.Result#toString()
*/
@Override
public String toString() {
return "EvalStatus [success=" + success() + (th==null ? "" : "; unhandled error found: "+th.getMessage() ) + "]";
}
}