The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Zing::Class - Base Class

ABSTRACT

Abstract Base Class

SYNOPSIS

  use Zing::Class;

  my $class = Zing::Class->new;

  # $class->throw;

DESCRIPTION

This package provides an abstract base class for Zing classes.

LIBRARIES

This package uses type constraints from:

Zing::Types

METHODS

This package implements the following methods:

throw

  throw(Any @args) : Error

The throw method throws a Zing::Error exception.

throw example #1
  # given: synopsis

  $class->throw(message => 'Oops');

try

  try(Str $method, Any @args) : InstanceOf["Data::Object::Try"]

The try method returns a tryable object based on the method and arguments provided.

try example #1
  # given: synopsis

  $class->try('throw', message => 'Oops');

AUTHOR

Al Newkirk, awncorp@cpan.org

LICENSE

Copyright (C) 2011-2019, Al Newkirk, et al.

This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".

PROJECT

Wiki

Project

Initiatives

Milestones

Contributing

Issues