# ArgCheck.jl **Repository Path**: Julialang/ArgCheck.jl ## Basic Information - **Project Name**: ArgCheck.jl - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-03-12 - **Last Updated**: 2024-07-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ArgCheck [![Build Status](https://travis-ci.org/jw3126/ArgCheck.jl.svg?branch=master)](https://travis-ci.org/jw3126/ArgCheck.jl) [![codecov.io](https://codecov.io/github/jw3126/ArgCheck.jl/coverage.svg?branch=master)](http://codecov.io/github/jw3126/ArgCheck.jl?branch=master) ## Installation ```Julia Pkg.add("ArgCheck") ``` ## Usage ```Julia using ArgCheck function f(x,y) @argcheck cos(x) < sin(y) # doit end f(0,0) ERROR: ArgumentError: cos(x) < sin(y) must hold. Got cos(x) => 1.0 sin(y) => 0.0 ``` You can also customize the error: ```Julia @argcheck k > n @argcheck size(A) == size(B) DimensionMismatch @argcheck det(A) < 0 DomainError() @argcheck false MyCustomError(my, args...) ```