trait Tryo extends AnyRef
- Alphabetic
- By Inheritance
- Tryo
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
tryo[T](ignore: Class[_])(f: ⇒ T): Box[T]
Wraps a "try" block around the function f.
Wraps a "try" block around the function f. Takes only one Class of exception to ignore
- ignore
- a single exception classes to ignore. A thrown exception will be ignored if it is assignable from this class.
- f
- the block of code to evaluate
- returns
- Full(result of the evaluation of f) if f doesn't throw any exception
- a Failure if f throws an exception
- Empty if the exception class is in the ignore list
-
def
tryo[T](ignore: List[Class[_]])(f: ⇒ T): Box[T]
Wraps a "try" block around the function f
Wraps a "try" block around the function f
- ignore
- a list of exception classes to ignore. A thrown exception will be ignored if it is assignable from one of the exception classes in the list
- f
- the block of code to evaluate
- returns
- Full(result of the evaluation of f) if f doesn't throw any exception
- a Failure if f throws an exception
- Empty if the exception class is in the ignore list
-
def
tryo[T](onError: (Throwable) ⇒ Unit)(f: ⇒ T): Box[T]
Wraps a "try" block around the function f and trigger a callback function if an exception is thrown
Wraps a "try" block around the function f and trigger a callback function if an exception is thrown
- onError
- an optional callback function that will use the thrown exception as a parameter
- f
- the block of code to evaluate
- returns
- Full(result of the evaluation of f) if f doesn't throw any exception
- a Failure if f throws an exception
-
def
tryo[T](f: ⇒ T): Box[T]
Wraps a "try" block around the function f
Wraps a "try" block around the function f
- f
- the block of code to evaluate
- returns
- Full(result of the evaluation of f) if f doesn't throw any exception
- a Failure if f throws an exception
-
def
tryo[T](handler: PartialFunction[Throwable, T], f: ⇒ T): Box[T]
Wraps a "try" block around the function f.
Wraps a "try" block around the function f. If f throws an exception that is in the domain of the handler PF, the handler will be invoked on the exception. Otherwise the exception is wrapped into a Failure.
- handler
- A partial function that handles exceptions
- f
- the block of code to evaluate
- returns
- Full(result of the evaluation of f) if f doesn't throw any exception
- a Failure if f throws an exception
- See also
net.liftweb.common.Failure
-
def
tryo[T](ignore: List[Class[_]], onError: Box[(Throwable) ⇒ Unit])(f: ⇒ T): Box[T]
Wraps a "try" block around the function f.
Wraps a "try" block around the function f. If f throws an exception with its class in the 'ignore' list or if 'ignore' is null or an empty list, ignore the exception and return None.
- ignore
- a list of exception classes to ignore. A thrown exception will be ignored if it is assignable from one of the exception classes in the list
- onError
- an optional callback function that will use the thrown exception as a parameter
- f
- the block of code to evaluate
- returns
- Full(result of the evaluation of f) if f doesn't throw any exception
- a Failure if f throws an exception
- Empty if the exception class is in the ignore list
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )