Stdlib index
- Captured-borrow migration worklist (3.3.3)
- Owned-bind migration worklist (8.2.7)
- Return-side title audit — the ride-through enumeration
- stdlib ownership audit
- stdlib ownership dispositions (plan 1.3.1 / 4.3.1)
aot
codec
codec / csv
codec / json
collection
- ArrayList
- BPlusTree
- Cache
- Collectors
- HashMap
- HashSet
- Heap
- ImmutableList
- ImmutableMap
- ImmutableSet
- LinkedList
- RedBlackTree
- Sort
collection / ltm
concurrent
error
- Exception
- NoOptionalValueException
- NotProvidedException
- RecoverableException
- ScopedBuildFailedException
- ScopeNotActiveException
- Throwable
- UnrecoverableException
gfx
hash
ifx
io
io / file
io / net
io / net / dns
io / net / uri
lang
lang / stream
math
math / fft
math / linalg
math / npio
math / poly
math / random
math / stats
nucleo
- Columns — the Arrow-laid-out substrate
- Fused tensor expressions — Fuse
- Table — the lazy, typed dataframe
- Tape — define-by-run autograd
- Transform intrinsics — Grad, Vmap, Jit
process
reflect
search / distance
search / fuzzy
search / ngram
session
time
- Clock
- DateTimeFormatter
- Duration
- Instant
- LocalDate
- LocalDateTime
- LocalTime
- Period
- ZonedDateTime
- ZoneId
- ZoneOffset
wire
xpu
xpu / mesh
NoOptionalValueException
cajeta.error.NoOptionalValueException — thrown by
Optional.get() on an empty Optional. Extends
RecoverableException: an unwrap miss is
catchable and the program continues — UnrecoverableException is reserved
for panic. Prefer guarding with isPresent() or using orElse(); the type
exists so an unguarded unwrap fails loudly at the fault site with a stable
diagnostic code (the class FQN).
Optional<int32> miss = stack Optional<int32>(false, 0);
try {
int32 v = miss.get();
} catch (NoOptionalValueException e) {
// reached: unwrap of an empty Optional
}
Methods
| Signature | |
|---|---|
NoOptionalValueException(#String message) ⚑ | Wrap a message describing the unwrap site |
⚑ = @EntryPoint
Inherits the full Throwable surface: getMessage,
getCause, getStackTrace, printStackTrace, toJson, category
affordances.
See also
- Optional — the thrower
- Source:
runtime/src/cajeta/error/NoOptionalValueException.cajeta