Moose::Meta::TypeCoercion::Union(3) User Contributed Perl Documentation Moose::Meta::TypeCoercion::Union(3)

# [DESCRIPTION](#DESCRIPTION)

This is a subclass of Moose::Meta::TypeCoercion that is used for Moose::Meta::TypeConstraint::Union objects.

# [METHODS](#METHODS)

## [$coercion-&gt;has\_coercion\_for\_type](#$coercion)

This method always returns false.

## [$coercion-&gt;add\_type\_coercions](#$coercion~2)

This method always throws an error. You cannot add coercions to a union type coercion.

## [$coercion-&gt;coerce($value)](#$coercion~3)

This method will coerce by trying the coercions for each type in the union.

# [BUGS](#BUGS)

See "BUGS" in Moose for details on reporting bugs.

2026-08-29 perl v5.44.0

---

Document: Moose::Meta::TypeCoercion::Union(3pm) from perl-moose 2.4000-r4 (Chainguard OS)
Source: https://github.com/moose/Moose
